From 4ab97d7bf37e2a4071aae68c0bd40ceb244f41dd Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 31 Oct 2022 01:00:00 +0100 Subject: [PATCH] Update Dockerfile to fix npm warnings --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 91da9bf..1fe2fa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY package.json package-lock.json tsconfig.json .eslintignore .eslintrc.js Rea COPY src/ /usr/src/app/src/ COPY scripts/ /usr/src/app/scripts/ COPY other/ /usr/src/app/other/ -RUN mkdir -p docs/schema && npm install --no-optional && npm run build && npm prune --production && rm -rf ./src +RUN mkdir -p docs/schema && npm install --exclude=optional && npm run build && npm prune --omit=dev && rm -rf ./src # Start the App EXPOSE 8080