From 93cfaf55f79a7f26341b7e0dea8b8433e8bf91bd Mon Sep 17 00:00:00 2001 From: "cartsnitch-engineer[bot]" <269717931+cartsnitch-engineer[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 02:48:25 +0000 Subject: [PATCH] fix(api): add libpq5 to prod stage for psycopg2 runtime Co-Authored-By: Paperclip --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0c5b700..e271e94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ RUN pip install --no-cache-dir --prefix=/install . # Stage 2: Production image 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