Spaces:
Sleeping
Sleeping
Download Dockerfile from arifa-batool/digital-recognizer: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/spaces/arifa-batool/digital-recognizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arifa-batool/digital-recognizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arifa-batool/digital-recognizer/resolve/main/Dockerfile
354 Bytes
| # Use official Python slim image | |
| FROM python:3.10-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files | |
| COPY . . | |
| # Expose HF default port | |
| EXPOSE 7860 | |
| # Run the Flask app | |
| CMD ["python", "run.py"] | |