diff options
author | varun gudisena <varuneshwar.gudisena@att.com> | 2019-04-12 19:15:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-12 19:15:43 +0000 |
commit | ce06845e9df9cdfa92db2b75c7f44bf3b96a4812 (patch) | |
tree | ddba15c71a9042aba74f6a41078e067fd8a2a169 /dmaap-bc/src/main/resources/Dockerfile | |
parent | c60f419fa447586f1b758ecca7458ae4d6d424e4 (diff) | |
parent | 85e7c7e57c262e38a0b3e0a14e4ebf4b92f00a58 (diff) |
Merge "Run as non-root"
Diffstat (limited to 'dmaap-bc/src/main/resources/Dockerfile')
-rw-r--r-- | dmaap-bc/src/main/resources/Dockerfile | 6 |
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"] |