Skip to content

Commit 3d80f12

Browse files
cristianciuteavaras
authored andcommitted
run as non-root (newrelic#16)
1 parent 9bb4c8c commit 3d80f12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ FROM alpine:latest
33
# This makes it easy to build tagged images with different `kubectl` versions.
44
ARG KUBECTL_VERSION="v1.13.0"
55

6-
USER root
76
RUN apk add --update openssl
87
RUN wget https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl \
98
&& chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl
@@ -13,4 +12,6 @@ RUN chmod +x /app/generate_certificate.sh
1312

1413
WORKDIR /app
1514

15+
USER 1000
16+
1617
CMD ["./generate_certificate.sh"]

0 commit comments

Comments
 (0)