From b4350f96ad8ad5f4377831be13e5ebe367eb183b Mon Sep 17 00:00:00 2001 From: edepaul Date: Mon, 1 Apr 2019 16:41:53 +0000 Subject: Update dating dockerfiles for non root containers Issue-ID: DMAAP-1134 Change-Id: I7dcc5b6754fc157dea3abfc2e19a2a07ce509760 Signed-off-by: edepaul --- datarouter-subscriber/src/main/resources/docker/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'datarouter-subscriber/src') diff --git a/datarouter-subscriber/src/main/resources/docker/Dockerfile b/datarouter-subscriber/src/main/resources/docker/Dockerfile index fe6d2fc3..7892ff75 100644 --- a/datarouter-subscriber/src/main/resources/docker/Dockerfile +++ b/datarouter-subscriber/src/main/resources/docker/Dockerfile @@ -29,3 +29,9 @@ EXPOSE 8080 8443 WORKDIR /opt RUN chmod 0700 startup.sh ENTRYPOINT ["sh", "startup.sh"] + +RUN addgroup -S onap \ + && adduser -S datarouter -G onap \ + && chown -R datarouter:onap /opt/ + +USER datarouter \ No newline at end of file -- cgit 1.2.3-korg