Browse Source

Dockerfile: --omit=dev newer flag for —production

Dependency types to omit from the installation tree on disk. Will make the image a bit smaller and build take less time.
pull/720/head
Philip H 1 year ago
committed by GitHub
parent
commit
75180f953d
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 AS build_node_modules
# Copy Web UI
COPY src/ /app/
WORKDIR /app
RUN npm ci
RUN npm ci --omit=dev
# Copy build result to a new image.
# This saves a lot of disk space.

Loading…
Cancel
Save