fix file permissions in dockerfile hopefully
All checks were successful
Deploy / Deploy (push) Successful in 1m30s
All checks were successful
Deploy / Deploy (push) Successful in 1m30s
This commit is contained in:
parent
8c6d6393b6
commit
03440a45e7
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue