Download Dockerfile from d-e-e-k-11/card2: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/d-e-e-k-11/card2/resolve/main/Dockerfile
- Command line
-
hf download hf://d-e-e-k-11/card2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/d-e-e-k-11/card2/resolve/main/Dockerfile
473 Bytes
| # Use official Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the port Flask runs on | |
| EXPOSE 7860 | |
| # Set environment variables for Flask | |
| ENV FLASK_APP=app.py | |
| ENV FLASK_RUN_HOST=0.0.0.0 | |
| ENV FLASK_RUN_PORT=7860 | |
| # Run the application | |
| CMD ["python", "app.py"] | |