aboutsummaryrefslogtreecommitdiffstats
path: root/build/docker
diff options
context:
space:
mode:
Diffstat (limited to 'build/docker')
-rw-r--r--build/docker/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile
index f25e592..511964d 100644
--- a/build/docker/Dockerfile
+++ b/build/docker/Dockerfile
@@ -1,4 +1,9 @@
FROM alpine:3.3
COPY kube2msb /bin/
+RUN addgroup -g 1000 msb && \
+ adduser -D -u 1000 -G msb msb && \
+ chown msb:msb /bin/kube2msb
+USER msb
+
ENTRYPOINT /bin/kube2msb --kube_master_url=${KUBE_MASTER_URL} --auth_token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) --msb_url=${MSB_URL}