1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Run the CLI as non-root

Run the Flux CLI inside the container under the nobody user and group.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2022-01-26 09:51:50 +02:00
parent 030e166f43
commit 08412b72bc

View File

@@ -20,4 +20,5 @@ RUN apk add --no-cache ca-certificates
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
COPY --chmod=755 flux /usr/local/bin/
USER 65534:65534
ENTRYPOINT [ "flux" ]