Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Set Hugging Face cache directory to a writable location | |
| ENV HF_HOME=/tmp/hf_cache | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN python -m spacy download en_core_web_sm | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |