aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAreli, Fuss (af732p) <af732p@att.com>2018-05-24 12:54:59 +0300
committerAreli, Fuss (af732p) <af732p@att.com>2018-05-24 12:55:49 +0300
commitcad6d1f99dcb5a2d23d04cc5a039c5fa1bb4639a (patch)
tree38420735302ce2516715efe45f274af4ebe7d5fd /Dockerfile
parent1bba336e9328bdba726d9674ecd3e638248a1294 (diff)
Replace uWsgi
Replace uWsgi with gunicorn And remove python precompiled files Change-Id: Icb8b592f371badadeb9d936e2a0edd929baacea9 Issue-ID: VVP-60 Signed-off-by: Areli, Fuss (af732p) <af732p@att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index d44fef7..19bcee5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -65,8 +65,8 @@ RUN apk add --no-cache \
py-setuptools \
sqlite \
ttf-freefont \
- uwsgi \
- uwsgi-python \
+# uwsgi \
+# uwsgi-python \
wget \
xvfb \
&& :
@@ -78,7 +78,8 @@ WORKDIR /app
RUN ln -s -f /opt/configmaps/settings/__init__.py /app/web/settings/__init__.py
RUN pip install --upgrade setuptools && \
- pip install uwsgi && \
+# pip install uwsgi && \
+ pip install gunicorn && \
pip install -r requirements.txt
RUN apk del \
@@ -91,4 +92,4 @@ RUN apk del \
&& :
ENTRYPOINT ["/app/docker-entrypoint.sh"]
-CMD ["/usr/local/bin/uwsgi", "--ini", "/app/web/settings/uwsgi.ini"]
+CMD ["/usr/local/bin/gunicorn", "-c", "/opt/configmaps/settings/gunicorn.ini" , "web.wsgi:application"]