Tommy Carpenter | 8984604 | 2018-06-26 22:19:08 -0400 | [diff] [blame^] | 1 | FROM tiangolo/uwsgi-nginx-flask:python3.6 |
Tommy Carpenter | 0581c1e | 2017-08-11 15:02:32 -0400 | [diff] [blame] | 2 | MAINTAINER tommy@research.att.com |
| 3 | |
Tommy Carpenter | 8984604 | 2018-06-26 22:19:08 -0400 | [diff] [blame^] | 4 | #setup uwsgi+nginx |
| 5 | # https://hub.docker.com/r/tiangolo/uwsgi-nginx-flask/ |
| 6 | COPY ./app /app |
Tommy Carpenter | 0581c1e | 2017-08-11 15:02:32 -0400 | [diff] [blame] | 7 | |
Tommy Carpenter | 8984604 | 2018-06-26 22:19:08 -0400 | [diff] [blame^] | 8 | RUN pip install --upgrade pip |
| 9 | RUN pip install /app/app |
Tommy Carpenter | 0581c1e | 2017-08-11 15:02:32 -0400 | [diff] [blame] | 10 | |
Tommy Carpenter | 226719d | 2018-03-09 10:41:05 -0500 | [diff] [blame] | 11 | RUN mkdir -p /opt/logs/ |
| 12 | |
Tommy Carpenter | 8984604 | 2018-06-26 22:19:08 -0400 | [diff] [blame^] | 13 | ENV LISTEN_PORT 10000 |