From 9663964fec0fd784fe6ddca8c15ea5613e0ebffb Mon Sep 17 00:00:00 2001 From: hieptl Date: Fri, 2 Oct 2026 11:34:32 +0700 Subject: [PATCH] fix: drop unused libpq-dev to restore the automation image build python:3.12-slim-trixie was republished with libssl3t64 3.5.7-1~deb13u3, newer than the pinned Debian snapshot, so installing libpq-dev failed: the snapshot's libssl-dev requires libssl3t64 3.5.7-1~deb13u2 exactly. - Drop libpq-dev. Nothing uses libpq: the service connects with asyncpg and the migrations with pg8000, and the image has no compiler that could use the headers. - Read security updates from trixie-security, the suite for this Debian 13 image, instead of bookworm-security. --- containers/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containers/Dockerfile b/containers/Dockerfile index 180f5f73..c304c9bd 100644 --- a/containers/Dockerfile +++ b/containers/Dockerfile @@ -8,7 +8,7 @@ ENV PYTHONPATH='/app' # Datadog labels LABEL com.datadoghq.tags.service="automation" -# Install system deps for asyncpg + uv + git (for SDK git dependencies) +# Install uv + git (for SDK git dependencies) RUN printf '%s\n' \ 'Types: deb' \ "URIs: http://snapshot.debian.org/archive/debian/${DEBIAN_SNAPSHOT}/" \ @@ -19,13 +19,13 @@ RUN printf '%s\n' \ '' \ 'Types: deb' \ "URIs: http://snapshot.debian.org/archive/debian-security/${DEBIAN_SNAPSHOT}/" \ - 'Suites: bookworm-security' \ + 'Suites: trixie-security' \ 'Components: main' \ 'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' \ 'Check-Valid-Until: no' \ > /etc/apt/sources.list.d/debian.sources && \ apt-get update && \ - apt-get install -y --no-install-recommends libpq-dev git && \ + apt-get install -y --no-install-recommends git && \ apt-get upgrade -y --no-install-recommends && \ apt-get clean && rm -rf /var/lib/apt/lists/* && \ pip install --no-cache-dir uv ddtrace