Skip to content

Commit c6389bc

Browse files
use a non-root user (#1009) (#1012)
Co-authored-by: Akshay Gupta <[email protected]>
1 parent 32ea314 commit c6389bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dockerfiles/deploy.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM ubuntu:16.04
22
RUN apt-get update
33
RUN apt-get install -y ca-certificates openssl
4+
RUN useradd appgw-ingress-user
45
ADD bin/appgw-ingress /
6+
RUN chown appgw-ingress-user /appgw-ingress
7+
USER appgw-ingress-user
58
RUN chmod +x /appgw-ingress
69
CMD ["/appgw-ingress"]

0 commit comments

Comments
 (0)