diff options
Diffstat (limited to 'ms/command-executor/src/main/docker/Dockerfile')
-rw-r--r-- | ms/command-executor/src/main/docker/Dockerfile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ms/command-executor/src/main/docker/Dockerfile b/ms/command-executor/src/main/docker/Dockerfile index 1e5d4cbb8..7ef689728 100644 --- a/ms/command-executor/src/main/docker/Dockerfile +++ b/ms/command-executor/src/main/docker/Dockerfile @@ -1,14 +1,14 @@ -FROM python:3.6-slim +FROM onap/integration-python:7.0.1 +USER root ENV GRPC_PYTHON_VERSION 1.20.0 + RUN python -m pip install --upgrade pip RUN pip install grpcio==${GRPC_PYTHON_VERSION} grpcio-tools==${GRPC_PYTHON_VERSION} RUN pip install virtualenv==16.7.9 -RUN groupadd -r -g 1000 onap && useradd -r -u 1000 -g onap onap - -COPY start.sh /opt/app/onap/start.sh -RUN chmod u+x /opt/app/onap/start.sh +COPY start.sh /opt/app/onap/command-executor/start.sh \ + && chmod u+x /opt/app/onap/command-executor/start.sh RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log @@ -22,5 +22,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/start.sh +ENTRYPOINT /opt/app/onap/command-executor/start.sh |