aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorTommy Carpenter <tommy@research.att.com>2019-05-29 13:36:01 -0400
committerTommy Carpenter <tommy@research.att.com>2019-06-04 09:12:25 -0400
commite14b49ead38227ff17d760c4771d58d9c6d2e7c0 (patch)
tree9e3cdc16376a5fb5f4b825a3930b28a89f58bccd /Dockerfile
parent040d03d77587ce24f0e99ee504b5b0ff5473a39e (diff)
Switch to gevent
Issue-ID: DCAEGEN2-1549 Change-Id: I762d9630f857a23b6ae61992d483cdca7bb6f88d Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile28
1 files changed, 6 insertions, 22 deletions
diff --git a/Dockerfile b/Dockerfile
index 6c783f0..1e65511 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,30 +1,14 @@
-FROM tiangolo/uwsgi-nginx-flask:python3.6
+FROM python:3.6
MAINTAINER tommy@research.att.com
-#setup uwsgi+nginx
-# https://hub.docker.com/r/tiangolo/uwsgi-nginx-flask/
-COPY ./app /app
+COPY . /tmp
+WORKDIR /tmp
RUN pip install --upgrade pip
-RUN pip install /app/app
-
+RUN pip install .
RUN mkdir -p /opt/logs/
-
-# create the dir for the ssl certs
-RUN mkdir -p /etc/nginx/ssl
-
-COPY nginxhttps.conf /etc/nginx/conf.d/nginxhttps.conf
-
-#443 is https, 10000 is http
-# in the future, hopefully http can go away completely
-ENV LISTEN_PORT 10000
-EXPOSE 443
EXPOSE 10000
-# Mount a self signed certificate that should be overwritten upon Run
-RUN apt-get update && \
- apt-get install -y openssl && \
- openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/C=US/ST=NJ/L=foo/O=ONAP/OU=ONAP/CN=configbinding"
+ENV PROD_LOGGING 1
-#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.
-ENV SERVICE_80_IGNORE true
+CMD run.py