use some prebuild python libs to speed up build

This commit is contained in:
Adrien le Maire 2020-07-30 11:36:41 +02:00
parent 602c7a6bb6
commit 8dfdda33ae

View File

@ -46,7 +46,7 @@ ARG GUNICORN_VERSION=20.0.4
RUN export GH_VERSION=$(echo ${VERSION} | tr '.' '_') && \
apt update -qq && \
apt install -qqy --no-install-recommends curl python3-pip python3-dev python3-setuptools libpq-dev build-essential libffi-dev && \
apt install -qqy --no-install-recommends curl python3-pip python3-nacl python3-openssl python3-bcrypt python3-cffi python3-psycopg2 python3-psutil python3-sshtunnel python3-dev python3-setuptools libpq-dev build-essential libffi-dev && \
pip3 install --no-cache-dir pgadmin4==${VERSION} gunicorn==${GUNICORN_VERSION} && \
ln -s /usr/local/lib/python3.7/dist-packages/pgadmin4 /pgadmin4 && \
ln -s /usr/bin/python3 /usr/bin/python && \