Skip to content

Commit e485465

Browse files
authored
Merge pull request #231 from jetstack/image-user
Use USER 1000:1000 in agent image.
2 parents 2130eb7 + 78d6796 commit e485465

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ FROM gcr.io/distroless/base:nonroot
44
# Ref: https://docs.docker.com/buildx/working-with-buildx/
55
ARG TARGETPLATFORM
66

7+
USER 1000:1000
8+
79
COPY ./builds/${TARGETPLATFORM}/preflight /bin/preflight
810
# load in an example config file
911
ADD ./agent.yaml /etc/preflight/agent.yaml

0 commit comments

Comments
 (0)