Commit 6bc88fdf authored by BAIRE Anthony's avatar BAIRE Anthony

configure the backports with at preferences file

- make security upgrades work correctly
- avoid installing other backport packages accidentally
parent fbad3633
......@@ -4,14 +4,11 @@ FROM allgo/base-debian
# Installation of gunicorn through pip because the debian package
# python3-gunicorn doesn't install any binary
# Install Stretch backport
RUN echo "deb stretch-backports main" \
>> /etc/apt/sources.list.d/stretch.list
RUN apt-get update && apt-get -t stretch-backports install -y \
python3-django python3-django-allauth
# configure stretch backports
COPY setup/backports/. /
RUN apt-get install -y mysql-server default-libmysqlclient-dev \
python3-django python3-django-allauth \
nginx-light zip python3-dev python3-pip python3-mysqldb python-mysqldb \
supervisor && pip3 install gunicorn
Package: python3-django python-django-common python3-django-allauth
Pin: release a=stretch-backports
Pin-Priority: 500
Package: *
Pin: release a=stretch-backports
Pin-Priority: 1
deb stretch-backports main
#deb-src stretch-backports main
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