FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ libpq-dev \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt ENV PYTHONPATH=/app ENV HF_HOME=/app/.hf-cache # Source mounted as volume in docker-compose.dev.yml; rerun by restarting the container. CMD ["python", "-u", "-m", "src.main"]