Skip to content
Snippets Groups Projects
Commit 54199d5b authored by Louis Cloutier's avatar Louis Cloutier Committed by Oliver
Browse files

Run as non-root user for secure environments (#232)

parent 2e64b0f9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -40,5 +40,8 @@ FROM scratch as scratch
COPY --from=builder /redis_exporter /redis_exporter
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
 
# Run as non-root user for secure environments
USER 59000:59000
EXPOSE 9121
ENTRYPOINT [ "/redis_exporter" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment