From 9c1c061c8e80f41f3838dfaf487b54af36ad8071 Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Tue, 15 Sep 2020 09:51:24 -0400 Subject: 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) Change-Id: I2b3c27cc8e3a378f9ceeeb0de62f81de9fc38c6b --- ms/py-executor/docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ms/py-executor/docker') 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 -- cgit 1.2.3-korg