Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # System packages | |
| RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | |
| # NLTK punkt & Stanza | |
| RUN python -m nltk.downloader punkt | |
| RUN python -c "import stanza; stanza.download('fa')" | |
| # Copy project | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |