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 | 0d2fdb1 | 2018-06-29 16:08:34 -0400 | [diff] [blame] | 13 | # create the dir for the ssl certs |
| 14 | RUN mkdir -p /etc/nginx/ssl |
| 15 | |
| 16 | COPY nginxhttps.conf /etc/nginx/conf.d/nginxhttps.conf |
| 17 | |
| 18 | ENV LISTEN_PORT 10000 |
| 19 | EXPOSE 443 |
| 20 | EXPOSE 10000 |
| 21 | |
| 22 | #this is a registrator flag that tells it to ignore 80 from service discovery. Nothing is listening on 80, but the parent Dockerfile here exposes it. This container is internally listening on 10000 and 443. |
| 23 | ENV SERVICE_80_IGNORE true |