Spaces:
Sleeping
Sleeping
Download Dockerfile from adrian7305/email-classifier-api: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/spaces/adrian7305/email-classifier-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/adrian7305/email-classifier-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/adrian7305/email-classifier-api/resolve/main/Dockerfile
427 Bytes
| FROM python:3.10-slim | |
| # 1) Set working directory | |
| WORKDIR /app | |
| # 2) Copy everything into the container | |
| COPY . /app | |
| # 3) Install requirements | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 4) Download spaCy model | |
| RUN python -m spacy download en_core_web_sm | |
| # 5) Expose port 7860 (FastAPI default) | |
| EXPOSE 7860 | |
| # 6) Start Uvicorn with your FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |