From cad6d1f99dcb5a2d23d04cc5a039c5fa1bb4639a Mon Sep 17 00:00:00 2001 From: "Areli, Fuss (af732p)" Date: Thu, 24 May 2018 12:54:59 +0300 Subject: Replace uWsgi Replace uWsgi with gunicorn And remove python precompiled files Change-Id: Icb8b592f371badadeb9d936e2a0edd929baacea9 Issue-ID: VVP-60 Signed-off-by: Areli, Fuss (af732p) --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Dockerfile') 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"] -- cgit 1.2.3-korg