forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move USER argument down to be parsed conrrectl
Signed-off-by: Armin Felder <[email protected]>
- Loading branch information
1 parent
4e599e3
commit d78f294
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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} | ||
|