Browse Source

change to npm ci

no-need-build
LouisLam 3 years ago
parent
commit
d3517e76c1
  1. 2
      dockerfile
  2. 2
      dockerfile-alpine

2
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

2
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

Loading…
Cancel
Save