Compare commits

..

No commits in common. "main" and "v4.40.0" have entirely different histories.

View File

@ -2,7 +2,7 @@ FROM node:lts-alpine
RUN apk add --no-cache tini
ENV NODE_ENV=production
ENV NODE_ENV production
RUN npm install -g pnpm@9
@ -12,9 +12,7 @@ WORKDIR /app
COPY --chown=node:node . ./
# --prod 模式下 husky 不会被安装prepare 脚本会因找不到 husky 而失败,
# 故显式跳过生命周期脚本;本项目生产运行也不依赖任何 postinstall 步骤。
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
RUN pnpm install --frozen-lockfile --prod
EXPOSE 3000