Skip to content

Commit

Permalink
Use non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelnikolov committed Jul 25, 2024
1 parent bec8b2d commit d52d052
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ RUN cargo build --release --bin zkpauth-client
# use distroless image instead of alpine because rust uses musl libc
FROM gcr.io/distroless/cc-debian12
COPY --from=builder /app/target/release/zkpauth-client /app/
USER 1000
CMD ["/app/zkpauth-client"]
1 change: 1 addition & 0 deletions server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ RUN cargo build --release --bin zkpauth-server
# use distroless image instead of alpine because rust uses musl libc
FROM gcr.io/distroless/cc-debian12
COPY --from=builder /app/target/release/zkpauth-server /app/
USER 1000
CMD ["/app/zkpauth-server"]

0 comments on commit d52d052

Please sign in to comment.