socialnerds/accounts
socialnerds
/
accounts
Archived
1
0
Fork 0

added docker config and requirements.txt

This commit is contained in:
david 2019-11-11 22:36:08 +01:00
parent c30c50ec37
commit 96d746cb29
4 changed files with 28 additions and 1 deletions

15
Dockerfile Normal file
View File

@ -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
View File

@ -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)

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: "3"
services:
accounts:
build: .
image: accounts:latest
container_name: accounts
ports:
- 8734:8000
restart: unless-stopped

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
requests
configparser
bottle