summaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorsunil.unnava <sunil.unnava@att.com>2019-04-09 00:44:47 -0400
committersunil.unnava <sunil.unnava@att.com>2019-04-09 00:45:04 -0400
commitff8244a97ee52fb667c5dd78ae256b2d13795d98 (patch)
tree7133f4c8622595a77df7ba3f7ed39d1c8cce4276 /src/main/docker/Dockerfile
parentc2b8550855c68fb8ee6398c358a3e00399359942 (diff)
run as non root user
Issue-ID: DMAAP-1040 Change-Id: I8b51a2e32113f115b11004c0bccf827329026065 Signed-off-by: sunil.unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker/Dockerfile')
-rw-r--r--src/main/docker/Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index f21b236..1140464 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -51,9 +51,9 @@ RUN chmod -R 777 /opt/zookeeper/bin
ENTRYPOINT /opt/zookeeper/bin/start-zookeeper.sh
EXPOSE 2181 2888 3888
-RUN addgroup onap \
- && adduser mrzookeeper -ingroup onap \
- && chown -R mrzookeeper:onap /opt/$ZK_DIST/ /opt/zookeeper/ /var/lib/ /var/log/ /tmp/zookeeper/
+RUN addgroup 2000 \
+ && adduser 1000 -ingroup 2000 \
+ && chown -R 1000:2000 /opt/$ZK_DIST/ /opt/zookeeper/ /var/lib/ /var/log/ /tmp/zookeeper/
-USER mrzookeeper
+USER 1000