Skip to content

Commit

Permalink
Merge pull request #102 from jingyuanliang/master
Browse files Browse the repository at this point in the history
Fix go-build-template update: iptables can't run as nobody
  • Loading branch information
k8s-ci-robot authored Feb 28, 2023
2 parents dd50226 + 3e2be03 commit 5768947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/.push-*
/.container-*
/.dockerfile-*
/.licenses
/.licenses*
/.buildx-initialized

# Emacs save files
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ARG HASH_BINARY=0
# Add the platform-specific binary.
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

# This would be nicer as `nobody:nobody` but distroless has no such entries.
USER 65535:65535
# This container has to run as root for iptables. Be explicit here.
USER 0:0
ENV HOME /

ENTRYPOINT ["/{ARG_BIN}"]

0 comments on commit 5768947

Please sign in to comment.