Spaces:
Sleeping
Sleeping
Download Dockerfile from KevsOno/KevsDigitalBot: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/KevsOno/KevsDigitalBot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KevsOno/KevsDigitalBot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KevsOno/KevsDigitalBot/resolve/main/Dockerfile
396 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the port Gradio/FastAPI uses (7860 for Spaces) | |
| EXPOSE 7860 | |
| # Run the FastAPI app with uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |