From 116162159edf98e6c7c1bbfb7ad2d647083bd287 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Fri, 6 Aug 2021 20:01:56 -0700 Subject: [PATCH] Respecting package-lock --- dockerfile-captain.edge | 4 ++-- dockerfile-captain.release | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dockerfile-captain.edge b/dockerfile-captain.edge index 307d3bc..310d322 100644 --- a/dockerfile-captain.edge +++ b/dockerfile-captain.edge @@ -12,7 +12,7 @@ WORKDIR /usr/src/app COPY . /usr/src/app -RUN npm install --production && \ +RUN npm ci --production && \ npm cache clean --force && \ npm run build && \ mv ./edge-override.json ./config-override.json @@ -27,7 +27,7 @@ RUN mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \ git clone https://github.com/githubsaturn/caprover-frontend.git && \ cd caprover-frontend && \ git log --max-count=1 && \ - npm install --production && npm cache clean --force && \ + npm ci --production && npm cache clean --force && \ npm run build && \ mv ./build ../../app/dist-frontend && \ cd / && \ diff --git a/dockerfile-captain.release b/dockerfile-captain.release index 8cb80da..eb3e048 100644 --- a/dockerfile-captain.release +++ b/dockerfile-captain.release @@ -6,7 +6,7 @@ WORKDIR /usr/src/app # Build backend code. COPY . /usr/src/app -RUN npm install --production && \ +RUN npm ci --production && \ npm cache clean --force && \ npm run build @@ -21,7 +21,7 @@ RUN mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \ git clone https://github.com/githubsaturn/caprover-frontend.git && \ cd caprover-frontend && \ git reset --hard ${FRONTEND_COMMIT_HASH} && \ - npm install --production && npm cache clean --force && \ + npm ci --production && npm cache clean --force && \ npm run build && \ mv ./build ../../app/dist-frontend && \ cd / && \