aboutsummaryrefslogtreecommitdiffstats
path: root/dbc-client/src/main/resources/Dockerfile
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 /dbc-client/src/main/resources/Dockerfile
parentd1eb116b93ba7a6f8dae7e34157a6e155104db9a (diff)
Run as non-root
Change-Id: I25f5bf778b9878648bd305fa0de965e4e7ec718c Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-1164
Diffstat (limited to 'dbc-client/src/main/resources/Dockerfile')
-rw-r--r--dbc-client/src/main/resources/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbc-client/src/main/resources/Dockerfile b/dbc-client/src/main/resources/Dockerfile
index 9baa481..85f9426 100644
--- a/dbc-client/src/main/resources/Dockerfile
+++ b/dbc-client/src/main/resources/Dockerfile
@@ -46,4 +46,10 @@ RUN chmod +x /opt/app/dbc-client/bin/* && \
VOLUME /opt/app/dbc-client/log
+RUN addgroup -S -g 1001 onap \
+ && adduser -S -u 1000 dbc -G onap \
+ && chown -R dbc:onap /opt/
+
+USER dbc
+
ENTRYPOINT ["sh", "./bin/dbc-client" ]