change to npm ci

pull/643/head
LouisLam 3 years ago
parent 2625cbe0d2
commit d3517e76c1

@ -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

@ -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

Loading…
Cancel
Save