From d3517e76c1a73f3623d22f2caecf127d1926caa5 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Sun, 3 Oct 2021 15:27:15 +0800 Subject: [PATCH] change to npm ci --- dockerfile | 2 +- dockerfile-alpine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 969d5ff3..3746722f 100644 --- a/dockerfile +++ b/dockerfile @@ -2,7 +2,7 @@ FROM louislam/uptime-kuma:base-debian AS build WORKDIR /app COPY . . -RUN npm install --legacy-peer-deps && \ +RUN npm ci && \ npm run build && \ npm prune --production && \ chmod +x /app/extra/entrypoint.sh diff --git a/dockerfile-alpine b/dockerfile-alpine index 178afcab..8cbfbe23 100644 --- a/dockerfile-alpine +++ b/dockerfile-alpine @@ -2,7 +2,7 @@ FROM louislam/uptime-kuma:base-alpine AS build WORKDIR /app COPY . . -RUN npm install --legacy-peer-deps && \ +RUN npm ci && \ npm run build && \ npm prune --production && \ chmod +x /app/extra/entrypoint.sh