Skip to content

Commit 78d6796

Browse files
committed
Use USER 1000:1000 in agent image.
We're running issues getting the agent to work out of the box on OpenShift clusters due to the way they set up security contexts. We're trying to align our Docker image with cert-manager's as their deployments work out of the box with the restrictions that OpenShifts's SecurityContextConstraints custom resource applies by default. Signed-off-by: David Bond <[email protected]>
1 parent 2130eb7 commit 78d6796

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)