diff options
author | Tommy Carpenter <tommy@research.att.com> | 2018-06-26 22:19:08 -0400 |
---|---|---|
committer | Tommy Carpenter <tommy@research.att.com> | 2018-06-27 07:05:38 -0400 |
commit | 8984604d52cd9354897b48b783dfd8610c5c5758 (patch) | |
tree | 87f5eed6508545663c89723636c191d996bbc29f /Dockerfile | |
parent | 7c12195918d37ef66658fe5c0565d73add60cfda (diff) |
Productionalize with NGINX, towards https
Change-Id: I0fcb79216cfc83d817a8d0ac4f3817d0aeea4e95
Issue-ID: DCAEGEN2-562
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -1,15 +1,13 @@ -FROM python:3.6 +FROM tiangolo/uwsgi-nginx-flask:python3.6 MAINTAINER tommy@research.att.com -ADD . /tmp +#setup uwsgi+nginx +# https://hub.docker.com/r/tiangolo/uwsgi-nginx-flask/ +COPY ./app /app -RUN pip install --upgrade pip -WORKDIR /tmp -#do the install -RUN pip install . - -EXPOSE 10000 +RUN pip install --upgrade pip +RUN pip install /app/app RUN mkdir -p /opt/logs/ -CMD run.py +ENV LISTEN_PORT 10000 |