From b4921d51a00fc15c30b74ffa08bfe2633406ff5a Mon Sep 17 00:00:00 2001 From: Draco-Lunaris-Echo Date: Sun, 7 Jun 2026 17:34:05 -0500 Subject: [PATCH] fix(docker): use ubuntu:24.04 runtime instead of debian:bookworm-slim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project targets Ubuntu 24.04, not Debian Bookworm. Ubuntu 24.04 includes PostgreSQL 16 in default repos, eliminating the need for the PGDG APT repo workaround. Also fixes libssl3 → libssl3t64 package name for the time64 transition in Ubuntu 24.04. --- Dockerfile | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3dc9f0..21d2d8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,23 +58,15 @@ RUN npm run build # --------------------------------------------------------------------------- # Stage 3: Runtime # --------------------------------------------------------------------------- -FROM debian:bookworm-slim AS runtime +FROM ubuntu:24.04 AS runtime -# Add PostgreSQL APT repository for postgresql-client-16 -# (Bookworm default repos only ship PostgreSQL 15) -RUN apt-get update && apt-get install -y ca-certificates curl gnupg2 \ - && curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc \ - | gpg --dearmor -o /usr/share/keyrings/postgresql-keyring.gpg \ - && echo "deb [signed-by=/usr/share/keyrings/postgresql-keyring.gpg] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" \ - > /etc/apt/sources.list.d/pgdg.list \ - && apt-get update \ - && apt-get install -y \ - libssl3 \ - libfontconfig1 \ - postgresql-client-16 \ - argon2 \ - && apt-get purge -y gnupg2 \ - && apt-get autoremove -y \ +RUN apt-get update && apt-get install -y \ + ca-certificates \ + libssl3t64 \ + libfontconfig1 \ + postgresql-client-16 \ + argon2 \ + curl \ && rm -rf /var/lib/apt/lists/* # Create service user