Dockerfile
version: '3.1'
services:
web:
image: python:3.6
restart: always
environment:
API_PORT: 80
PYTHONPATH: /pythonpath
port:
- 8080:80
volumes:
- ./app.py:/app.py
- /root/pythonpath:/pythonpath
extra_hosts:
- "google.com:127.0.0.1"
command: |
sh -c "pip3 install redis gunicorn &&
pip3 install flask flask-cors requests &&
#python3 /app.py
cd /; gunicorn --workers=2 'app:create_app()' --bind=0.0.0.0:80"