Spaces:
Sleeping
Sleeping
Download Dockerfile from gauravrao1144/Hospital_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/gauravrao1144/Hospital_Chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gauravrao1144/Hospital_Chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gauravrao1144/Hospital_Chatbot/resolve/main/Dockerfile
431 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Copy the app code | |
| COPY . . | |
| # Expose port 8000 | |
| EXPOSE 8000 | |
| # Run the FastAPI app with uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |