🐳更新dockerfile
Some checks failed
continuous-integration/drone/tag Build is failing

This commit is contained in:
coward 2024-06-04 10:12:20 +08:00
parent b2c4ea2cd0
commit 021f3a44ba

View File

@ -1,6 +1,6 @@
FROM node:18-alpine as build-stage
WORKDIR ./web-src
RUN cd ./web-src
RUN corepack enable
RUN corepack prepare pnpm@8.6.10 --activate
RUN npm config set registry https://registry.npmmirror.com
@ -14,8 +14,8 @@ RUN apk add upx
WORKDIR /build
COPY ./web-src/dist ./web
COPY . .
COPY --from=build-stage /web /web
# sqlite必须
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct