no idea why npm prune --production suddenly not working, switch to npm ci --production

This commit is contained in:
Louis 2021-10-10 17:55:31 +08:00
parent 8958c21736
commit cee225bcb2
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
COPY . .
RUN npm ci && \
npm run build && \
npm prune --production && \
npm ci --production && \
chmod +x /app/extra/entrypoint.sh

View file

@ -6,7 +6,7 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
COPY . .
RUN npm ci && \
npm run build && \
npm prune --production && \
npm ci --production && \
chmod +x /app/extra/entrypoint.sh