diff options
author | Singal, Kapil (ks220y) <ks220y@att.com> | 2020-09-15 09:51:24 -0400 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2020-09-15 18:54:56 +0000 |
commit | 9c1c061c8e80f41f3838dfaf487b54af36ad8071 (patch) | |
tree | 718f3303554ca014ed9cf9378c01b0888e0e3a20 /ms/py-executor/docker/Dockerfile | |
parent | 00618f56efbdd683430397e0336a016acdca4c6f (diff) |
Fixing DockerFiles
Copying starting script to respective dir as root and then running as user onap
Issue-ID: CCSDK-2794
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: I2b3c27cc8e3a378f9ceeeb0de62f81de9fc38c6b
Diffstat (limited to 'ms/py-executor/docker/Dockerfile')
-rw-r--r-- | ms/py-executor/docker/Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ms/py-executor/docker/Dockerfile b/ms/py-executor/docker/Dockerfile index eb43b7320..812922c4d 100644 --- a/ms/py-executor/docker/Dockerfile +++ b/ms/py-executor/docker/Dockerfile @@ -1,7 +1,6 @@ -FROM python:3.7-slim - -RUN groupadd -r -g 1000 onap && useradd -u 1000 -r -g onap onap +FROM onap/integration-python:7.0.1 +USER root RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz @@ -16,5 +15,6 @@ RUN mkdir -p /opt/app/onap/blueprints/deploy RUN chown onap:onap /opt -R VOLUME /opt/app/onap/blueprints/deploy/ + USER onap ENTRYPOINT /opt/app/onap/python/start.sh |