From 75180f953dcde350502ae2591a55d4e3e05b27be Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sun, 31 Dec 2023 16:43:11 +0100 Subject: [PATCH] =?UTF-8?q?Dockerfile:=20--omit=3Ddev=20newer=20flag=20for?= =?UTF-8?q?=20=E2=80=94production?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dependency types to omit from the installation tree on disk. Will make the image a bit smaller and build take less time. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 29d25e5..e907fd5 100644 --- a/Dockerfile +++ b/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.