fix file permissions in dockerfile hopefully
Deploy / Deploy (push) Successful in 1m30s Details

This commit is contained in:
Rik Berkelder 2025-01-15 02:43:11 +01:00
parent 8c6d6393b6
commit 03440a45e7
1 changed files with 3 additions and 3 deletions

View File

@ -17,13 +17,13 @@ RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=cache,target=/root/.npm \ --mount=type=cache,target=/root/.npm \
npm ci --omit=dev npm ci --omit=dev
# Copy the rest of the source files into the image.
COPY . .
RUN chown -R node.node /usr/src/app RUN chown -R node.node /usr/src/app
# Run the application as a non-root user. # Run the application as a non-root user.
USER node USER node
# Copy the rest of the source files into the image.
COPY . .
# Run the application. # Run the application.
CMD node index.js CMD node index.js