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