Commit 73c04646 authored by Emanuele Aina's avatar Emanuele Aina

Dockerfile: Use packages from Debian when available

Pulling from PyPI can lead to nasty surprises with
compatibility-breaking updates.

Wheel packages shipping binaries such as psycopg2 also need to carry
a plethora of libraries with them like libpq and openssl for no good
reason since we already have a full packaging system to handle them, so
let's use it.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 9f6850a4
......@@ -4,8 +4,8 @@ before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get install --no-install-recommends -y python3-pytest
- apt-get install --no-install-recommends -y python3-setuptools python3-wheel python3-pip python3-yaml python3-phabricator python3-yattag ca-certificates
- pip3 install Flask Flask-SQLAlchemy Flask-Migrate Flask-Script psycopg2-binary
- apt-get install --no-install-recommends -y python3-setuptools python3-wheel python3-pip python3-yaml python3-phabricator python3-yattag ca-certificates python3-flask python3-flask-migrate python3-flask-script python3-flask-sqlalchemy python3-psycopg2 python3-oauthlib python3-blinker python3-requests-oauthlib python3-urlobject
- pip3 install Flask-Dance
unit-tests:
stage: test
......
......@@ -16,11 +16,18 @@ RUN apt update && \
python3-yattag \
ca-certificates \
wait-for-it \
python3-flask \
python3-flask-migrate \
python3-flask-script \
python3-flask-sqlalchemy \
python3-psycopg2 \
python3-oauthlib \
python3-blinker \
python3-requests-oauthlib \
python3-urlobject \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install Flask Flask-SQLAlchemy Flask-Migrate Flask-Script \
psycopg2-binary Flask-Dance blinker
RUN pip3 install Flask-Dance
WORKDIR /app
......
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