aboutsummaryrefslogtreecommitdiffstats
path: root/dmaap-bc/src/main
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2019-04-12 18:59:42 +0000
committerdglFromAtt <dgl@research.att.com>2019-04-12 18:59:56 +0000
commit85e7c7e57c262e38a0b3e0a14e4ebf4b92f00a58 (patch)
treed70dbb91af617a2ff771c730279078aaefd3cc6f /dmaap-bc/src/main
parentd1eb116b93ba7a6f8dae7e34157a6e155104db9a (diff)
Run as non-root
Change-Id: I25f5bf778b9878648bd305fa0de965e4e7ec718c Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-1164
Diffstat (limited to 'dmaap-bc/src/main')
-rw-r--r--dmaap-bc/src/main/resources/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/dmaap-bc/src/main/resources/Dockerfile b/dmaap-bc/src/main/resources/Dockerfile
index 014fb5e..d930a6f 100644
--- a/dmaap-bc/src/main/resources/Dockerfile
+++ b/dmaap-bc/src/main/resources/Dockerfile
@@ -53,4 +53,10 @@ RUN mv etc/org.onap.dmaap-bc.jks etc/keystore && \
VOLUME /opt/app/dmaapbc/log
+RUN addgroup -S -g 1001 onap \
+ && adduser -S -u 1000 dbc -G onap \
+ && chown -R dbc:onap /opt/
+
+USER dbc
+
ENTRYPOINT ["sh", "./bin/dmaapbc", "deploy"]