Spaces:
Sleeping
Sleeping
Download Dockerfile from gauthamnairy/PageIndexAPI: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/gauthamnairy/PageIndexAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gauthamnairy/PageIndexAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gauthamnairy/PageIndexAPI/resolve/main/Dockerfile
492 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Copy requirements first to leverage Docker cache | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the port used by Gradio | |
| EXPOSE 7860 | |
| # Set environment variables if needed (though secrets should be set in HF Space settings) | |
| # ENV NVIDIA_API_KEY=... | |
| # ENV MISTRAL_API_KEY=... | |
| # Run the application | |
| CMD ["python", "app.py"] | |