Spaces:
Sleeping
Sleeping
File size: 561 Bytes
2a9e653 4fd17cf 3a4d16d 4fd17cf b1fd2a9 4fd17cf a27b6ba 4fd17cf 3a4d16d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Rebuild trigger: 2026-04-15f (float32 cast for all embedding models + parallel line-by-line)
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
ENV TOKENIZERS_PARALLELISM=false
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -c "import nltk; nltk.download('punkt_tab'); nltk.download('punkt'); nltk.download('averaged_perceptron_tagger')"
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]
|