diff --git a/dockerfile b/dockerfile index 969d5ff38..3746722f5 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 178afcabb..8cbfbe232 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