Skip to content

Commit 1ab8c18

Browse files
Merge pull request #31 from UnitVectorY-Labs/non-root
Run gRPC server as non-root user
2 parents c3a2e4b + 3b9daee commit 1ab8c18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ COPY --from=builder /app/server /server
2222
# Expose the port that the gRPC server will listen on
2323
EXPOSE 8080
2424

25+
# Run as non-root user
26+
USER 65532:65532
27+
2528
# Run the gRPC server binary
2629
CMD ["/server"]

0 commit comments

Comments
 (0)