diff options
Diffstat (limited to 'deliveries/src/main')
-rwxr-xr-x | deliveries/src/main/docker/docker-files/Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deliveries/src/main/docker/docker-files/Dockerfile b/deliveries/src/main/docker/docker-files/Dockerfile index 3f9c1ade3..b169aa441 100755 --- a/deliveries/src/main/docker/docker-files/Dockerfile +++ b/deliveries/src/main/docker/docker-files/Dockerfile @@ -1,8 +1,10 @@ -FROM tomcat:8.0-jre8-alpine +FROM tomcat:9.0-jre8-alpine # add vim and uncomment alias to speedup troubleshooting purpose RUN apk update && apk add openjdk8 vim net-tools +RUN adduser --disabled-password onap onap +RUN mkdir -p /opt/app COPY conf.d/ /etc/onap/vid/conf.d/ # MariaDB variables @@ -90,6 +92,7 @@ ADD maven/config/server.xml ${VID_TOMCAT_PATH} ADD maven/scripts/*.sh /tmp/vid/ ADD maven/artifacts/vid.war /tmp/vid/stage/ +RUN chown onap:onap /tmp/vid /usr/local/tomcat /etc/onap/vid /opt/app -R RUN chmod +x /tmp/vid/localize.sh - -CMD ["/tmp/vid/localize.sh"]
\ No newline at end of file +USER onap +CMD ["/tmp/vid/localize.sh"] |