diff options
author | Taka Cho <takamune.cho@att.com> | 2019-03-01 14:33:58 -0500 |
---|---|---|
committer | Patrick Brady <patrick.brady@att.com> | 2019-03-01 15:05:58 -0800 |
commit | eeb70bdfe4b41e60f96c29579bef583131eb8853 (patch) | |
tree | bf14b1e84bbfa254658ed1c34b276cb02630fa6f /cdt/src | |
parent | 95ef2ec2871013b21806fc00cd27f6483da82a56 (diff) |
move non-root id run for CDT container
add cdt:cdt to Dockerfile
change port 80 to 18080 for non-root
user
Change-Id: I694cfaed85396d8f4f527d33e8e507e6d7a64178
Issue-ID: APPC-1519
Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'cdt/src')
-rw-r--r-- | cdt/src/main/docker/Dockerfile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cdt/src/main/docker/Dockerfile b/cdt/src/main/docker/Dockerfile index dc2d1ed..4fe3d4f 100644 --- a/cdt/src/main/docker/Dockerfile +++ b/cdt/src/main/docker/Dockerfile @@ -23,6 +23,14 @@ FROM httpd:2.4-alpine MAINTAINER APP-C Team (appc@lists.openecomp.org) -COPY config-design-tool /usr/local/apache2/htdocs/ +RUN sed -i -e "s/80/18080/" /usr/local/apache2/conf/httpd.conf; \ +addgroup -S cdt && adduser -S cdt -G cdt -COPY startCdt.sh /opt/startCdt.sh +COPY --chown=cdt:cdt config-design-tool /usr/local/apache2/htdocs/ + +COPY --chown=cdt:cdt startCdt.sh /opt/startCdt.sh + +RUN chown -R cdt:cdt /opt; \ +chown -R cdt:cdt /usr/local/apache2 + +USER cdt:cdt |