Dockerize, part 1
This commit is contained in:
parent
b680438d06
commit
c3e07f2e2e
|
@ -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"]
|
||||
|
|
@ -67,4 +67,4 @@ def root():
|
|||
return usage
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(port='5002')
|
||||
app.run(port='5002',host="0.0.0.0")
|
Loading…
Reference in New Issue