fix:cicd更新

This commit is contained in:
Your Name 2026-06-22 13:34:10 +08:00
parent 44c20adba6
commit 39b91338b0

View File

@ -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"]