diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..efaada0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM debian:10.5 + +MAINTAINER Paul Warren + +run apt-get update -y +run apt-get install -y python3-pip python3-dev + +copy ./requirements.txt /requirements.txt + +WORKDIR / + +run pip3 install -r requirements.txt + + +copy ./app /app + +ENTRYPOINT ["python3"] + +CMD ["app/app.py"] + diff --git a/app.py b/app/app.py similarity index 97% rename from app.py rename to app/app.py index 751efb2..96bb61c 100644 --- a/app.py +++ b/app/app.py @@ -67,4 +67,4 @@ def root(): return usage if __name__ == '__main__': - app.run(port='5002') + app.run(port='5002',host="0.0.0.0")