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 / && \