From 0e95a460d5c82a0c444fbb33e359599e57ee24be Mon Sep 17 00:00:00 2001 From: coward Date: Tue, 4 Jun 2024 10:16:51 +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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec1b834..912c516 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ FROM node:18-alpine as build-stage -RUN cd ./web-src +WORKDIR front +COPY . . +WORKDIR web-src + +RUN ls -lh RUN corepack enable RUN corepack prepare pnpm@8.6.10 --activate RUN npm config set registry https://registry.npmmirror.com @@ -15,7 +19,7 @@ RUN apk add upx WORKDIR /build COPY . . -COPY --from=build-stage /web /web +COPY --from=build-stage /front/web /web # sqlite必须 ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct