mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-18 21:51:49 +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:
parent
030e166f43
commit
08412b72bc
1 changed files with 1 additions and 0 deletions
|
|
@ -20,4 +20,5 @@ RUN apk add --no-cache ca-certificates
|
||||||
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
|
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
|
||||||
COPY --chmod=755 flux /usr/local/bin/
|
COPY --chmod=755 flux /usr/local/bin/
|
||||||
|
|
||||||
|
USER 65534:65534
|
||||||
ENTRYPOINT [ "flux" ]
|
ENTRYPOINT [ "flux" ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue