Skip to content

Commit ec9e0f6

Browse files
author
Paulo Gomes
committed
Revert to controller user
Signed-off-by: Paulo Gomes <[email protected]>
1 parent ab93457 commit ec9e0f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ FROM debian:bookworm-slim as controller
9090
# Link repo to the GitHub Container Registry image
9191
LABEL org.opencontainers.image.source="https://github.com/fluxcd/source-controller"
9292

93+
# Configure user
94+
RUN groupadd controller && \
95+
useradd --gid controller --shell /bin/sh --create-home controller
96+
9397
ARG TARGETPLATFORM
9498
RUN apt update && apt install -y ca-certificates
9599

@@ -98,5 +102,5 @@ COPY --from=build /workspace/source-controller /usr/local/bin/
98102
COPY --from=libgit2-bullseye /libgit2/built-on-glibc-version /
99103
COPY ATTRIBUTIONS.md /
100104

101-
USER 65534:65534
105+
USER controller
102106
ENTRYPOINT [ "source-controller" ]

0 commit comments

Comments
 (0)