Commit 0bc30bf6 authored by BAIRE Anthony's avatar BAIRE Anthony

use debian's gunicorn package

(thus we'll have security updates)
parent 32a18d1c
FROM allgo/base-debian
# install system packages
# Installation of gunicorn through pip because the debian package
# python3-gunicorn doesn't install any binary
# configure stretch backports
COPY setup/backports/. /
RUN apt-getq update && apt-getq install default-libmysqlclient-dev \
python3-django python3-django-allauth python3-misaka \
nginx-light zip gcc python3-dev python3-pip python3-wheel python3-mysqldb \
python-mysqldb python3-crypto \
&& pip3 install gunicorn
python-mysqldb python3-crypto gunicorn3
COPY requirements.txt /tmp/
RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt
......
......@@ -47,7 +47,7 @@ case "$ALLGO_HTTP_SERVER" in
''|gunicorn)
step "start gunicorn"
set -x
exec gunicorn -c setup/gunicorn.py config.wsgi:application
exec gunicorn3 -c setup/gunicorn.py config.wsgi:application
;;
*)
echo "error: invalid ALLGO_HTTP_SERVER: '$ALLGO_HTTP_SERVER'" >&2
......
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