FROM python:3.12-slim WORKDIR /app ENV PYTHONDONTWRITEBYTECODE=1 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY main.py . COPY app ./app COPY migrations ./migrations EXPOSE 8000 CMD ["python", "-m", "app.entrypoint"]