Browse Source

Dockerfile: clean build

--legacy-peer-deps will be use on build time, to get clean builds
deps will be updated normal anyway
pull/686/head
Philip H 1 year ago
committed by GitHub
parent
commit
31f15aa216
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Dockerfile

3
Dockerfile

@ -6,8 +6,7 @@ FROM docker.io/library/node:18-alpine@sha256:435dcad253bb5b7f347ebc69c8cc52de7c9
# Copy Web UI
COPY src/ /app/
WORKDIR /app
RUN npm config set fund false && npm ci --omit=dev
RUN npm config set fund false && npm ci --legacy-peer-deps
# Copy build result to a new image.
# This saves a lot of disk space.
FROM docker.io/library/node:18-alpine@sha256:435dcad253bb5b7f347ebc69c8cc52de7c912eb7241098b920f2fc2d7843183d

Loading…
Cancel
Save