From 521df75463061447becaa6f52da45ffc2ae3a0ba Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:49:41 +0100 Subject: [PATCH] Dockerfile: in npm 8.x and above use --omit=dev flag --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e5a5df87..6137b967 100644 --- a/Dockerfile +++ b/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.