Skip to content

Commit 2837d48

Browse files
committed
Use non-root user
1 parent a90dc44 commit 2837d48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ FROM alpine:3.16
1818

1919
WORKDIR /opt/nginx-k8s-loadbalancer
2020

21+
RUN adduser -u 11115 -D -H nlk
22+
23+
USER nlk
24+
2125
COPY --from=builder /app/nginx-k8s-loadbalancer .
2226

2327
ENTRYPOINT ["/opt/nginx-k8s-loadbalancer/nginx-k8s-loadbalancer"]

0 commit comments

Comments
 (0)