From ee1fa758cb7ced39cd96edac92cab7c0b8d6c2fc Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Fri, 23 Aug 2019 08:53:51 -0400 Subject: [PATCH] Update dockerfile-captain.edge --- dockerfile-captain.edge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile-captain.edge b/dockerfile-captain.edge index 8d5725f..c7cd0ac 100644 --- a/dockerfile-captain.edge +++ b/dockerfile-captain.edge @@ -10,7 +10,7 @@ WORKDIR /usr/src/app COPY . /usr/src/app -RUN npm install && \ +RUN npm install --production && \ npm cache clean --force && \ npm run build && \ mv ./edge-override.json ./config-override.json @@ -25,7 +25,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 && npm cache clean --force && \ + npm install --production && npm cache clean --force && \ npm run build && \ mv ./build ../../app/dist-frontend && \ cd / && \