summaryrefslogtreecommitdiffstats
path: root/ms/py-executor/docker/Dockerfile
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-09-30 14:26:57 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-30 14:26:57 +0000
commit3bdfeb467fa4d26fa174ea4f27b256bb0abaf9d8 (patch)
treebcbeef749bb6e84e628e7f662e9b6bd07fb6fac3 /ms/py-executor/docker/Dockerfile
parent5519b94eb8cb45694418a2a00fdb28f332b93c6b (diff)
parent807fbaae96dc75294fe17c933b43261011f33309 (diff)
Merge "Add bi-directional GRPC python executor."
Diffstat (limited to 'ms/py-executor/docker/Dockerfile')
-rw-r--r--ms/py-executor/docker/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/ms/py-executor/docker/Dockerfile b/ms/py-executor/docker/Dockerfile
new file mode 100644
index 000000000..112180581
--- /dev/null
+++ b/ms/py-executor/docker/Dockerfile
@@ -0,0 +1,18 @@
+FROM python:3.7-slim
+
+ENV HTTP_PROXY ${HTTP_PROXY}
+ENV HTTPS_PROXY ${HTTPS_PROXY}
+
+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
+RUN tar -xzf /source.tar.gz -C /tmp \
+ && cp -rf /tmp/@project.build.finalName@/opt / \
+ && rm -rf /source.tar.gz \
+ && rm -rf /tmp/@project.build.finalName@
+
+RUN pip install --no-cache-dir -r /opt/app/onap/requirements.txt
+
+VOLUME /opt/app/onap/blueprints/deploy/
+
+ENTRYPOINT /opt/app/onap/start.sh \ No newline at end of file