Download Dockerfile from rishabhio/IrisModel: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/spaces/rishabhio/IrisModel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rishabhio/IrisModel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rishabhio/IrisModel/resolve/main/Dockerfile
468 Bytes
| # Use Python base image | |
| FROM --platform=linux/amd64 python:latest | |
| # Set working directory in the container | |
| WORKDIR /app | |
| # Copy requirements.txt to container | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the FastAPI app files to the container | |
| COPY . /app | |
| # Expose port 80 for FastAPI app | |
| EXPOSE 7860 | |
| # Command to start the FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |