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; \ RUN set -eux; \
apt update; \ apk add --no-cache git gcc build-base sqlite-dev npm nodejs; \
apt install nodejs npm -y; \ 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; \
#先编译后台 #先编译后台
git clone https://github.com/lejianwen/rustdesk-api-web; \
cd rustdesk-api-web; \ cd rustdesk-api-web; \
npm install; \ npm install; \
npm run build; \ npm run build; \
@@ -30,7 +29,7 @@ RUN set -eux; \
mkdir -p release/data; \ mkdir -p release/data; \
mkdir -p release/runtime; mkdir -p release/runtime;
VOLUME /app/data
FROM alpine FROM alpine
WORKDIR /app WORKDIR /app
COPY --from=builder /go/rustdesk-api/release /app/ COPY --from=builder /go/rustdesk-api/release /app/