Dockerize, part 1

This commit is contained in:
Paul Warren 2020-11-09 11:51:52 +11:00
parent b680438d06
commit c3e07f2e2e
2 changed files with 21 additions and 1 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM debian:10.5
MAINTAINER Paul Warren <pwarren@pwarren.id.au>
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"]

View File

@ -67,4 +67,4 @@ def root():
return usage
if __name__ == '__main__':
app.run(port='5002')
app.run(port='5002',host="0.0.0.0")