Containerfile now only installs dependencies; source code and config are mounted at runtime via compose volumes. Adds k8s-file log driver and PYTHONUNBUFFERED for reliable container logging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
278 B
Docker
17 lines
278 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip install --no-cache-dir \
|
|
"python-socks[asyncio]>=2.4" \
|
|
"aiosqlite>=0.19"
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PYTHONPATH=/app/src
|
|
|
|
VOLUME /app/src
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["python", "-m", "bouncer"]
|
|
CMD ["-c", "/data/bouncer.toml"]
|