fix file permissions in dockerfile hopefully
Deploy / Deploy (push) Successful in 1m30s
Details
Deploy / Deploy (push) Successful in 1m30s
Details
This commit is contained in:
parent
8c6d6393b6
commit
03440a45e7
|
@ -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…
Reference in New Issue