Skip to content

Commit

Permalink
fix: set user on kratix and adapter dockerfiles
Browse files Browse the repository at this point in the history
* some security scanners will complain when this is not set
  • Loading branch information
kirederik committed Oct 17, 2024
1 parent b0e3c24 commit 4ad2918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ FROM gcr.io/distroless/cc:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=alpine/git /usr/bin/git /usr/bin/git
USER 65532:65532

ENTRYPOINT ["/manager"]
1 change: 1 addition & 0 deletions Dockerfile.pipeline-adapter
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ COPY --chown=nonroot:nonroot --from=builder /workspace/work-creator/scripts/upda
COPY --chown=nonroot:nonroot --from=builder /workspace/work-creator/scripts/reader /bin/reader
COPY --chown=nonroot:nonroot --from=builder /workspace/work-creator-files /work-creator-files

USER 65532:65532
ENTRYPOINT []
CMD []

0 comments on commit 4ad2918

Please sign in to comment.