We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab93457 commit ec9e0f6Copy full SHA for ec9e0f6
Dockerfile
@@ -90,6 +90,10 @@ FROM debian:bookworm-slim as controller
90
# Link repo to the GitHub Container Registry image
91
LABEL org.opencontainers.image.source="https://github.com/fluxcd/source-controller"
92
93
+# Configure user
94
+RUN groupadd controller && \
95
+ useradd --gid controller --shell /bin/sh --create-home controller
96
+
97
ARG TARGETPLATFORM
98
RUN apt update && apt install -y ca-certificates
99
@@ -98,5 +102,5 @@ COPY --from=build /workspace/source-controller /usr/local/bin/
102
COPY --from=libgit2-bullseye /libgit2/built-on-glibc-version /
103
COPY ATTRIBUTIONS.md /
100
104
101
-USER 65534:65534
105
+USER controller
106
ENTRYPOINT [ "source-controller" ]
0 commit comments