Spaces:
Sleeping
Sleeping
Download Dockerfile from Nausad/Data2Model: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/Nausad/Data2Model/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nausad/Data2Model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nausad/Data2Model/resolve/main/Dockerfile
499 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies for matplotlib | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p uploads saved_models | |
| # HF Spaces requires port 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |