FROM python:3.10-slim WORKDIR /app RUN apt-get update && apt-get install -y \ curl \ git \ && rm -rf /var/lib/apt/lists/* RUN pip install uv --no-cache-dir COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY src/ src/ COPY api/ api/ COPY app/ app/ COPY configs/ configs/ COPY app.py . RUN mkdir -p artifacts/models/distilbert \ artifacts/vectorizers \ artifacts/monitoring \ data/raw ENV PYTHONPATH=/app ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 EXPOSE 7860 CMD ["python", "app.py"]