Commit d2dcfc0f authored by Zachary Seguin's avatar Zachary Seguin

Switch to gunicorn instead of uwsgi

parent 726b8309
Pipeline #36 passed with stages
in 7 minutes and 48 seconds
......@@ -8,8 +8,7 @@ RUN apk update \
ca-certificates \
postgresql-client \
libxml2 \
libxslt \
uwsgi-python
libxslt
# Set default directory
WORKDIR /srv/pyalertscanada
......@@ -23,6 +22,7 @@ RUN apk update \
libxml2-dev \
libxslt-dev \
&& pip install -r requirements.txt \
&& pip install gunicorn \
&& apk del .build-deps
# Copy code
......
#!/bin/bash
docker run \
-it \
--volumes-from pyalertscanada_web \
--network pyalertscanada_default \
--rm \
--workdir /srv/pyalertscanada \
--env AC_FLASK_SECRET_KEY=1817e8c14cc6d7389db3114b0b910b99 \
--env AC_DATABASE_URL=postgres://alerts_canada:ac_docker@db/alerts_canada \
--env AC_BROKER_URL=redis://redis:6379/0 \
--env AC_REDIS_URL=redis://redis:6379/1 \
--entrypoint "gunicorn" \
pyalertscanada:dev \
"$@"
#!/bin/bash
docker run \
-it \
--volumes-from pyalertscanada_web \
--network pyalertscanada_default \
--rm \
--workdir /srv/pyalertscanada \
--env AC_FLASK_SECRET_KEY=1817e8c14cc6d7389db3114b0b910b99 \
--env AC_DATABASE_URL=postgres://alerts_canada:ac_docker@db/alerts_canada \
--env AC_BROKER_URL=redis://redis:6379/0 \
--env AC_REDIS_URL=redis://redis:6379/1 \
--entrypoint "sh" \
--user root \
pyalertscanada:dev \
"$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment