From cee225bcb26969ebd2100cadca7771c0734f24db Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 10 Oct 2021 17:55:31 +0800 Subject: [PATCH] no idea why npm prune --production suddenly not working, switch to npm ci --production --- dockerfile | 2 +- dockerfile-alpine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index ae935de..38d585c 100644 --- a/dockerfile +++ b/dockerfile @@ -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 diff --git a/dockerfile-alpine b/dockerfile-alpine index a3a079e..e883031 100644 --- a/dockerfile-alpine +++ b/dockerfile-alpine @@ -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