Browse Source

Dockerfile: in npm 8.x and above use --omit=dev flag

pull/686/head
Philip H 1 year ago
committed by GitHub
parent
commit
521df75463
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Dockerfile

2
Dockerfile

@ -6,7 +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 --production
RUN npm config set fund false && npm ci --omit=dev
# Copy build result to a new image.
# This saves a lot of disk space.

Loading…
Cancel
Save