aboutsummaryrefslogtreecommitdiffstats
path: root/datarouter-subscriber
diff options
context:
space:
mode:
Diffstat (limited to 'datarouter-subscriber')
-rw-r--r--datarouter-subscriber/src/main/resources/docker/Dockerfile6
1 files changed, 6 insertions, 0 deletions
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