change to npm ci

This commit is contained in:
LouisLam 2021-10-03 15:27:15 +08:00
parent 2625cbe0d2
commit d3517e76c1
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ FROM louislam/uptime-kuma:base-debian AS build
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN npm install --legacy-peer-deps && \ RUN npm ci && \
npm run build && \ npm run build && \
npm prune --production && \ npm prune --production && \
chmod +x /app/extra/entrypoint.sh chmod +x /app/extra/entrypoint.sh

View File

@ -2,7 +2,7 @@ FROM louislam/uptime-kuma:base-alpine AS build
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN npm install --legacy-peer-deps && \ RUN npm ci && \
npm run build && \ npm run build && \
npm prune --production && \ npm prune --production && \
chmod +x /app/extra/entrypoint.sh chmod +x /app/extra/entrypoint.sh