Download Dockerfile from UntilDot/Flask: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/UntilDot/Flask/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/UntilDot/Flask/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/UntilDot/Flask/resolve/main/Dockerfile
313 Bytes
| # Use a slim Python base | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source code | |
| COPY . . | |
| # Expose the default Hugging Face Spaces port | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["python", "app.py"] | |