added build instructions for Docker image

This commit is contained in:
dcore94 2020-07-15 09:13:10 +02:00
parent f05052c32f
commit 0b382bc76e
3 changed files with 19 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM python:3.7
COPY requirements.txt /
RUN pip install -r /requirements.txt
COPY conductor/ /app/conductor
COPY pyexecplugins/ /app/pyexecplugins
COPY pyrest.py /app
COPY pyexec.py /app
COPY config.cfg /app
COPY setup.py /app
COPY entrypoint.sh /app
RUN chmod 755 /app/entrypoint.sh
WORKDIR /app
ENTRYPOINT ["./entrypoint.sh"]

4
entrypoint.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
python3 pyrest.py &
python3 pyexec.py

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
requests >= 2.19.1