From f9f38adadc8c373fe54e9af6b0f8a82c07546be8 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 23 Feb 2026 22:54:42 +0100 Subject: [PATCH] fix: bake source into container image for production builds Install deps from requirements.txt for better layer caching and COPY src/ into the image so pushed artifacts are self-contained. Remove VOLUME /app/src -- runtime config mount (/data) is sufficient. Co-Authored-By: Claude Opus 4.6 --- Containerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Containerfile b/Containerfile index c6cf545..8725b35 100644 --- a/Containerfile +++ b/Containerfile @@ -2,18 +2,15 @@ FROM python:3.12-slim WORKDIR /app -RUN pip install --no-cache-dir \ - "python-socks[asyncio]>=2.4" \ - "aiosqlite>=0.19" \ - "aiohttp>=3.9" \ - "aiohttp-socks>=0.8" \ - "cryptography>=41.0" +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY src/ /app/src/ ENV PYTHONUNBUFFERED=1 ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONPATH=/app/src -VOLUME /app/src VOLUME /data ENTRYPOINT ["python", "-m", "bouncer"]