diff options
author | sunil.unnava <su622b@att.com> | 2019-04-08 14:56:02 -0400 |
---|---|---|
committer | sunil.unnava <su622b@att.com> | 2019-04-08 14:57:01 -0400 |
commit | 223045803c885f9a3f81f051e62cb8e36ae42b64 (patch) | |
tree | 645dc7ec71c251824bbbbfe38e7da00c201393ba /src/main/resources | |
parent | d0b164ace6fdfadc395199beaab261e3351f61e3 (diff) |
run as non root user
Issue-ID: DMAAP-1040
Change-Id: Ie83ac32c4de72d3be1711a4c619507737ffd4181
Signed-off-by: sunil.unnava <su622b@att.com>
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/docker/Dockerfile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/resources/docker/Dockerfile b/src/main/resources/docker/Dockerfile index 2639cea..9afd41e 100644 --- a/src/main/resources/docker/Dockerfile +++ b/src/main/resources/docker/Dockerfile @@ -21,7 +21,13 @@ FROM openjdk:8-alpine MAINTAINER DMAAP Team COPY appl /appl/ -COPY startup.sh / +COPY startup.sh /appl/ +WORKDIR /appl RUN chmod 700 /startup.sh EXPOSE 3904 3905 ENTRYPOINT ["sh", "./startup.sh"] +RUN addgroup -S onap \ + && adduser -S messagerouter -G onap \ + && chown -R messagerouter:onap /appl/ \ + +USER messagerouter
\ No newline at end of file |