From a25b673dd6c651612f554ff5d0d104c781cd9f06 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Sat, 4 Apr 2026 10:51:57 +0000 Subject: [PATCH] fix: install libpq5 runtime in API prod Docker stage psycopg2 compiled against libpq-dev in the build stage now has its runtime dependency (libpq5) available in the prod stage. Co-Authored-By: Paperclip --- api/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index 23166b8..fbb8633 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -12,6 +12,8 @@ RUN pip install --no-cache-dir --prefix=/install . FROM python:3.12-slim AS prod +RUN apt-get update && apt-get install -y --no-install-recommends libpq5 && rm -rf /var/lib/apt/lists/* + WORKDIR /app RUN adduser --system --group --uid 1000 app COPY --from=build /install /usr/local