Spaces:
Runtime error
Runtime error
Download Dockerfile from UB2002/email_classification: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/spaces/UB2002/email_classification/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/UB2002/email_classification/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/UB2002/email_classification/resolve/main/Dockerfile
435 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY . /app | |
| # 1) Install OS-level build tools (gcc, make, etc.) | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential gcc && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # 2) Install Python deps and spaCy model | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt && \ | |
| python -m spacy download en_core_web_sm | |
| EXPOSE 7860 | |
| CMD ["python","app.py"] | |