diff --git a/Containerfile b/Containerfile index 25ae12c..4cbe913 100644 --- a/Containerfile +++ b/Containerfile @@ -2,12 +2,15 @@ FROM python:3.12-slim WORKDIR /app -COPY pyproject.toml . -COPY src/ src/ +RUN pip install --no-cache-dir \ + "python-socks[asyncio]>=2.4" \ + "aiosqlite>=0.19" -RUN pip install --no-cache-dir . +ENV PYTHONUNBUFFERED=1 +ENV PYTHONPATH=/app/src +VOLUME /app/src VOLUME /data -ENTRYPOINT ["bouncer"] +ENTRYPOINT ["python", "-m", "bouncer"] CMD ["-c", "/data/bouncer.toml"] diff --git a/compose.yaml b/compose.yaml index 224b432..37e99a8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -6,6 +6,9 @@ services: container_name: bouncer restart: unless-stopped network_mode: host + logging: + driver: k8s-file volumes: + - ./src:/app/src:Z,ro - ./config:/data:Z command: ["-c", "/data/bouncer.toml", "-v"]