mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
move USER argument down to be parsed conrrectl
Signed-off-by: Armin Felder <armin.felder@osalliance.com>
This commit is contained in:
committed by
Torin Sandall
parent
4e599e3e79
commit
d78f29434c
+2
-2
@@ -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 <torinsandall@gmail.com>
|
||||
COPY opa_linux_amd64 /opa
|
||||
USER ${USER}
|
||||
|
||||
Reference in New Issue
Block a user