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 ee638f3 commit 5c0a305
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 @@ -8,4 +8,5 @@ RUN npm test
FROM gcr.io/distroless/nodejs20-debian11
COPY --from=build-env /src /src
WORKDIR /src
USER nonroot
CMD ["index.js"]

0 comments on commit 5c0a305

Please sign in to comment.