You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an example using nonroot google distroless image:
FROM golang:1.20.4 as builder
WORKDIR /go/src/github.com/hipages/php-fpm_exporter
COPY . .
RUN go mod download
RUN make build
RUN cp php-fpm_exporter /bin/php-fpm_exporter
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=builder /bin/php-fpm_exporter /bin/php-fpm_exporter
EXPOSE 9253
ENTRYPOINT [ "/bin/php-fpm_exporter", "server" ]
Hello everyone,
some systems run with security contexts, which means that the container cannot run with root privileges.
Could you please also offer a non-root version docker image on docker hub?
Best regards.
The text was updated successfully, but these errors were encountered: