update Dockerfile

This commit is contained in:
ljw
2024-09-18 10:48:04 +08:00
parent 4c7919e6b7
commit 815ec0f75d
+4 -5
View File
@@ -1,11 +1,10 @@
FROM golang:1.22 as builder
FROM golang:1.22-alpine as builder
RUN set -eux; \
apt update; \
apt install nodejs npm -y; \
apk add --no-cache git gcc build-base sqlite-dev npm nodejs; \
git clone https://github.com/lejianwen/rustdesk-api-web; \
git clone https://github.com/lejianwen/rustdesk-api; \
#先编译后台
git clone https://github.com/lejianwen/rustdesk-api-web; \
cd rustdesk-api-web; \
npm install; \
npm run build; \
@@ -30,7 +29,7 @@ RUN set -eux; \
mkdir -p release/data; \
mkdir -p release/runtime;
VOLUME /app/data
FROM alpine
WORKDIR /app
COPY --from=builder /go/rustdesk-api/release /app/