Spaces:
Sleeping
Sleeping
File size: 555 Bytes
72e2b6e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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"]
|