diff --git a/client.Dockerfile b/client.Dockerfile index e4c504e..44a0292 100644 --- a/client.Dockerfile +++ b/client.Dockerfile @@ -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"] \ No newline at end of file diff --git a/server.Dockerfile b/server.Dockerfile index 148e93b..2e7a2c9 100644 --- a/server.Dockerfile +++ b/server.Dockerfile @@ -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"]