From 021f3a44ba9353824ddc0864fe68dfe57b02ea4c Mon Sep 17 00:00:00 2001 From: coward Date: Tue, 4 Jun 2024 10:12:20 +0800 Subject: [PATCH] =?UTF-8?q?:whale:=E6=9B=B4=E6=96=B0dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b84693e..ec1b834 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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