From 39b91338b01e14045fe4f0203934d7838706abcf Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 22 Jun 2026 13:34:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Acicd=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 42748e4..0750708 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,10 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories # 安装编译工具:使用 build-base 元包(gcc/g++/make 等) + python3 + openssl RUN apk add --no-cache python3 build-base openssl && rm -rf /var/cache/apk/* -# 安装 pnpm 并配置镜像源 +# 安装 pnpm 并配置镜像源,允许执行构建脚本 RUN npm install -g pnpm && \ - pnpm config set registry https://registry.npmmirror.com + pnpm config set registry https://registry.npmmirror.com && \ + pnpm config set enable-pre-post-scripts true # 复制依赖文件 COPY package*.json pnpm-lock.yaml ./ @@ -46,7 +47,7 @@ COPY package*.json ./ COPY --from=build /app/node_modules/.prisma ./node_modules/.prisma COPY --from=build /app/prisma ./prisma -EXPOSE 3002 +EXPOSE 3003 ENTRYPOINT ["dumb-init", "--"] CMD ["sh", "-c", "set -a; . ./.env; node dist/main"] \ No newline at end of file