aboutsummaryrefslogtreecommitdiffstats
path: root/datarouter-node/src/main
diff options
context:
space:
mode:
authoredepaul <paul.p.dennehy@est.tech>2019-04-01 16:41:53 +0000
committerPaul Dennehy <paul.p.dennehy@est.tech>2019-04-02 09:00:13 +0000
commitb4350f96ad8ad5f4377831be13e5ebe367eb183b (patch)
tree36fb6e25cc96bfcab38b737a22b65445613fa5f3 /datarouter-node/src/main
parent5667c08095a150c1dfcf6e803cfc7a576b7106f8 (diff)
Update dating dockerfiles for non root containers
Issue-ID: DMAAP-1134 Change-Id: I7dcc5b6754fc157dea3abfc2e19a2a07ce509760 Signed-off-by: edepaul <paul.p.dennehy@est.tech>
Diffstat (limited to 'datarouter-node/src/main')
-rw-r--r--datarouter-node/src/main/resources/docker/Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/datarouter-node/src/main/resources/docker/Dockerfile b/datarouter-node/src/main/resources/docker/Dockerfile
index 39007732..d57fbef5 100644
--- a/datarouter-node/src/main/resources/docker/Dockerfile
+++ b/datarouter-node/src/main/resources/docker/Dockerfile
@@ -25,10 +25,16 @@ MAINTAINER DMAAP Team
COPY /opt /opt
# curl used for healthcheck
-CMD apt update && apt add curl
+RUN apk update && apk add curl && apk add vim
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