mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-08-13 10:10:36 +00:00
Compare commits
No commits in common. "main" and "v4.40.0" have entirely different histories.
@ -2,7 +2,7 @@ FROM node:lts-alpine
|
|||||||
|
|
||||||
RUN apk add --no-cache tini
|
RUN apk add --no-cache tini
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
RUN npm install -g pnpm@9
|
RUN npm install -g pnpm@9
|
||||||
|
|
||||||
@ -12,9 +12,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY --chown=node:node . ./
|
COPY --chown=node:node . ./
|
||||||
|
|
||||||
# --prod 模式下 husky 不会被安装,prepare 脚本会因找不到 husky 而失败,
|
RUN pnpm install --frozen-lockfile --prod
|
||||||
# 故显式跳过生命周期脚本;本项目生产运行也不依赖任何 postinstall 步骤。
|
|
||||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user