From fbbc9bceb83de1ade5b4b6a666546aba24a14e2f Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Wed, 16 Sep 2020 10:49:28 -0400 Subject: Fixing dockerFile Fixing dockerFile and related items Refactoring pom properties Issue-ID: CCSDK-2794 Change-Id: Ib9d3cc38c2db65778cef2590ab774035305a16fa Signed-off-by: Singal, Kapil (ks220y) --- ms/py-executor/docker/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ms/py-executor/docker/Dockerfile') diff --git a/ms/py-executor/docker/Dockerfile b/ms/py-executor/docker/Dockerfile index cdf416d9d..2fa699672 100644 --- a/ms/py-executor/docker/Dockerfile +++ b/ms/py-executor/docker/Dockerfile @@ -1,8 +1,6 @@ -FROM onap/integration-python:7.0.1 +FROM python:3.7-slim USER root -RUN python -m pip install --upgrade pip -RUN pip install --no-cache-dir -r /opt/app/onap/python/requirements/docker.txt RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log # add entrypoint @@ -15,10 +13,14 @@ RUN tar -xzf /source.tar.gz -C /tmp \ && rm -rf /source.tar.gz \ && rm -rf /tmp/@project.build.finalName@ \ && mkdir -p /opt/app/onap/blueprints/deploy \ - && chown onap:onap /opt -R \ && chmod 755 /opt/app/onap/py-executor/start.sh VOLUME /opt/app/onap/blueprints/deploy/ +RUN python -m pip install --upgrade pip setuptools +RUN pip install --no-cache-dir -r /opt/app/onap/python/requirements/docker.txt + +RUN groupadd -r -g 1000 onap && useradd -r -u 1000 -g onap onap +RUN chown onap:onap /opt -R USER onap ENTRYPOINT /opt/app/onap/py-executor/start.sh -- cgit 1.2.3-korg