From 63a42cdfb3f94e930adb9bc158eedb81761b179d Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Fri, 16 Apr 2021 23:48:35 +0200 Subject: [PATCH] [Docker] Base on debian:bullseye-slim * We get Python 3.9 from Debian * We can use uWSGI from Debian * We get postrgedql-client 13 (so pg_dump in dbbackup can dum pfrom PostgreSQL 13) --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3eb58d43d..6e7d1ce73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-buster AS core +FROM debian:bullseye-slim AS core # Build arguments ARG EXTRAS="ldap,s3" @@ -31,8 +31,11 @@ RUN apt-get -y update && \ libpq-dev \ libssl-dev \ postgresql-client \ - yarnpkg && \ - eatmydata pip install uwsgi + python3-dev \ + python3-pip \ + uwsgi \ + uwsgi-plugin-python3 \ + yarnpkg # Install extra dependencies RUN case ",$EXTRAS," in \ @@ -73,7 +76,8 @@ RUN set -e; \ libpq-dev \ libssl-dev \ libldap2-dev \ - libsasl2-dev; \ + libsasl2-dev \ + python3-dev; \ eatmydata apt-get autoremove --purge -y; \ apt-get clean -y; \ rm -rf /root/.cache -- GitLab