From 31c032c04a3e9fdcffa475ba74a47493091ddc38 Mon Sep 17 00:00:00 2001 From: sbriat Date: Mon, 30 Jan 2023 16:51:44 +0100 Subject: [PATCH] fix dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 000a55d..b63cb72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,9 +46,9 @@ RUN npm run build ENV NODE_ENV production # Running `npm ci` removes the existing node_modules directory. -# Passing in --only=production ensures that only the production dependencies are installed. +# Passing in --omit=dev ensures that only the production dependencies are installed. # This ensures that the node_modules directory is as optimized as possible. -RUN npm ci --only=production && npm cache clean --force +RUN npm ci --omit=dev && npm cache clean --force USER node