| 1234567891011121314151617181920212223242526272829 |
- # Dockerfile for disbot-a4
- # Author: Lari Natri
- # Use python 3.12; note that 3.13 and above might require some changes,
- # at least audioop-lts requirement must be added.
- FROM python:3.12-slim
- # System deps (tiny)
- RUN apt-get update && apt-get install -y --no-install-recommends \
- ca-certificates tzdata \
- && rm -rf /var/lib/apt/lists/*
- WORKDIR /app
- # Copy requirements and install
- COPY requirements.txt /app/requirements.txt
- RUN pip install --no-cache-dir -r requirements.txt
- # Copy (code is bind-mounted at runtime; we still add defaults for docker build)
- COPY src /app/src
- # Create data dir for SQLite
- RUN mkdir -p /app/data
- # Non-root (optional)
- RUN useradd -u 10001 -m appuser
- USER appuser
- # Default command is set by docker-compose
|