added docker config and requirements.txt
This commit is contained in:
parent
c30c50ec37
commit
96d746cb29
|
@ -0,0 +1,15 @@
|
|||
FROM python:3.6
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app.py .
|
||||
COPY app.conf .
|
||||
COPY views ./views
|
||||
COPY static ./static
|
||||
|
||||
EXPOSE 8000/tcp
|
||||
|
||||
CMD [ "python", "./app.py" ]
|
2
app.py
2
app.py
|
@ -339,4 +339,4 @@ def delete_account():
|
|||
#run(host='localhost', port=8000, debug=True, reloader=True)
|
||||
|
||||
# run prod server
|
||||
run(host='localhost', port=8000)
|
||||
run(host='0.0.0.0', port=8000, debug=True)
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
version: "3"
|
||||
services:
|
||||
accounts:
|
||||
build: .
|
||||
image: accounts:latest
|
||||
container_name: accounts
|
||||
ports:
|
||||
- 8734:8000
|
||||
restart: unless-stopped
|
|
@ -0,0 +1,3 @@
|
|||
requests
|
||||
configparser
|
||||
bottle
|
Reference in New Issue