move USER argument down to be parsed conrrectl

Signed-off-by: Armin Felder <armin.felder@osalliance.com>
This commit is contained in:
Armin Felder
2020-01-06 01:45:10 +01:00
committed by Torin Sandall
parent 4e599e3e79
commit d78f29434c
+2 -2
View File
@@ -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}