Spaces:
Runtime error
Runtime error
Download Dockerfile from kp-forks/ReasonGraph: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/kp-forks/ReasonGraph/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kp-forks/ReasonGraph/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kp-forks/ReasonGraph/resolve/main/Dockerfile
447 Bytes
| # Use official Python base image | |
| FROM python:3.11.8-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy dependency file | |
| COPY requirements.txt . | |
| # Install system dependencies and Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy project files | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV FLASK_APP=app.py | |
| ENV FLASK_RUN_HOST=0.0.0.0 | |
| ENV FLASK_RUN_PORT=7860 | |
| # Run application | |
| CMD ["flask", "run"] |