Skip to content

Commit

Permalink
chore: adding non root user in node dockerfile template
Browse files Browse the repository at this point in the history
  • Loading branch information
spchortis committed Sep 28, 2023
1 parent 9a3ce5f commit 36bd7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/docker/Dockerfile.node.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ RUN npm test
FROM gcr.io/distroless/nodejs20-debian11
COPY --from=build-env /app /app
WORKDIR /app
USER nonroot
CMD ["index.js"]

0 comments on commit 36bd7b2

Please sign in to comment.