Skip to content

Commit

Permalink
move USER argument down to be parsed conrrectl
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Felder <[email protected]>
  • Loading branch information
arminfelder authored and tsandall committed Jan 9, 2020
1 parent 4e599e3 commit d78f294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

ARG VARIANT

FROM gcr.io/distroless/base${VARIANT}

# Any non-zero number will do, and unfortunately a named user will not, as k8s
# pod securityContext runAsNonRoot can't resolve the user ID:
# https://github.com/kubernetes/kubernetes/issues/40958. Make root (uid 0) when
# not specified.
ARG USER=0

FROM gcr.io/distroless/base${VARIANT}

MAINTAINER Torin Sandall <[email protected]>
COPY opa_linux_amd64 /opa
USER ${USER}
Expand Down

0 comments on commit d78f294

Please sign in to comment.