From 17af7ed26950eb4942344e78d86fb0970a902bd6 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Fri, 20 Dec 2024 16:29:30 +0100 Subject: [PATCH] Fix Docker --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7465672..2050206 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ FROM node:${NODE_VERSION}-alpine # Use production node environment by default. ENV NODE_ENV production - WORKDIR /usr/src/app # Download dependencies as a separate step to take advantage of Docker's caching. @@ -23,7 +22,7 @@ WORKDIR /usr/src/app RUN --mount=type=bind,source=package.json,target=package.json \ --mount=type=bind,source=package-lock.json,target=package-lock.json \ --mount=type=cache,target=/root/.npm \ - npm ci --omit=dev + npm ci # Run the application as a non-root user. USER node