Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ FROM gcr.io/distroless/static-debian12:nonroot

WORKDIR /app

COPY --chown=nonroot:nonroot temporal-worker-controller /usr/local/bin/temporal-worker-controller

USER nonroot
COPY --chown=65532:65532 temporal-worker-controller /usr/local/bin/temporal-worker-controller
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also changed this to just have 65532 rather than nonroot to be more reliable: I think --chown=nonroot:nonroot depends on the build environment being able to resolve the names nonroot and nonroot to IDs during the COPY.

no need to maybe take this risk and just be explicit in nature.


ENTRYPOINT ["temporal-worker-controller"]