Skip to content

Commit

Permalink
chore: ensure docker file runs as non root user (#32995)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)


### Reason for this change

Same as this PR #32976
  • Loading branch information
GavinZZ authored Jan 17, 2025
1 parent 794520c commit 4285f1e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ COPY app.js package.json ./

RUN npm install

USER nobody

# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "app.lambdaHandler" ]

0 comments on commit 4285f1e

Please sign in to comment.