From afeb52d54958b6e23513d41bdb2bdc8329d5747c Mon Sep 17 00:00:00 2001 From: chufan Date: Sat, 5 Oct 2024 12:21:32 +0800 Subject: [PATCH] chore: update --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb3d4165..365df4ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # # - 功能: 408CSFamily镜像构建 -# - 用法: docker build -f Dockerfile --build-arg APP_VERSION=0.0.1 --build-arg CONTAINER_BUILD=true -t 408CSFamily-0.0.1 . +# - 用法: docker build -f Dockerfile --build-arg APP_VERSION=0.0.1 -t 408CSFamily-0.0.1 . # - 参数: # APP_VERSION: 版本 # CONTAINER_BUILD: 采用容器构建 @@ -20,8 +20,11 @@ COPY . . RUN echo $CONTAINER_BUILD; ## 基于容器自动构建 -RUN --mount=type=cache,id=pnpm,target=/pnpm/store if [ "$CONTAINER_BUILD" = "true" ]; then \ - sh ./scripts/ci && pnpm build; \ +RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && if [ "$NEED_PROXY" = "false" ]; \ + then \ + pnpm build; \ + else \ + pnpm build:proxy; \ fi; FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.27.0-alpine