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 /dbc-client/src/main | |
parent | c60f419fa447586f1b758ecca7458ae4d6d424e4 (diff) | |
parent | 85e7c7e57c262e38a0b3e0a14e4ebf4b92f00a58 (diff) |
Merge "Run as non-root"
Diffstat (limited to 'dbc-client/src/main')
-rw-r--r-- | dbc-client/src/main/resources/Dockerfile | 6 |
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" ] |