mirror of
https://github.com/caprover/caprover
synced 2026-05-03 18:20:32 +00:00
Respecting package-lock
This commit is contained in:
@@ -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 / && \
|
||||
|
||||
@@ -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 / && \
|
||||
|
||||
Reference in New Issue
Block a user