From 03440a45e76b2c64cac5032c9a113f697d01904d Mon Sep 17 00:00:00 2001 From: Rik Berkelder Date: Wed, 15 Jan 2025 02:43:11 +0100 Subject: [PATCH] fix file permissions in dockerfile hopefully --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1eb28ea..716d5dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,13 +17,13 @@ RUN --mount=type=bind,source=package.json,target=package.json \ --mount=type=cache,target=/root/.npm \ npm ci --omit=dev +# Copy the rest of the source files into the image. +COPY . . + RUN chown -R node.node /usr/src/app # Run the application as a non-root user. USER node -# Copy the rest of the source files into the image. -COPY . . - # Run the application. CMD node index.js