Respecting package-lock

This commit is contained in:
Kasra Bigdeli
2021-08-06 20:01:56 -07:00
parent 239e9182c0
commit 116162159e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 / && \
+2 -2
View File
@@ -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 / && \