Spaces:
Runtime error
Runtime error
Download Dockerfile from DS-Outputs/Digits: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/DS-Outputs/Digits/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DS-Outputs/Digits/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DS-Outputs/Digits/resolve/main/Dockerfile
455 Bytes
| # Dockerfile | |
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| COPY cnn_app.py ./ | |
| COPY model/ ./model/ | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "cnn_app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |