Dockerfile: clean build

--legacy-peer-deps will be use on build time, to get clean builds
deps will be updated normal anyway
This commit is contained in:
Philip H 2023-11-19 15:05:07 +01:00 committed by GitHub
parent 739d049a1b
commit 31f15aa216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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