aboutsummaryrefslogtreecommitdiffstats
path: root/ms/py-executor/docker/Dockerfile
diff options
context:
space:
mode:
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