Skip to content

Commit

Permalink
docker: use nonroot user in image (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaninjas authored Oct 20, 2023
1 parent 7058b55 commit a509d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ RUN cargo build --target x86_64-unknown-linux-musl --release --locked
FROM gcr.io/distroless/static:latest
COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/valfisk /valfisk

USER nonroot

CMD ["/valfisk"]

0 comments on commit a509d84

Please sign in to comment.