Spaces:
Build error
Build error
Download Dockerfile from Muhammadidrees/RiayatechChatDoctor: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/Muhammadidrees/RiayatechChatDoctor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Muhammadidrees/RiayatechChatDoctor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Muhammadidrees/RiayatechChatDoctor/resolve/main/Dockerfile
584 Bytes
| # Use official PyTorch image with CUDA support if GPU, or CPU-only | |
| ARG BASE_IMAGE=python:3.10-slim | |
| FROM ${BASE_IMAGE} | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Expose port for Gradio | |
| EXPOSE 7860 | |
| # Start the app | |
| CMD ["python", "app.py"] | |