Download Dockerfile from Susovan85/VaniAI: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/Susovan85/VaniAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Susovan85/VaniAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Susovan85/VaniAI/resolve/main/Dockerfile
666 Bytes
| FROM python:3.10-slim | |
| # Install FFmpeg (Required for audio extraction and transcription) | |
| RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy requirements and install dependencies | |
| COPY backend/requirements.txt ./backend/ | |
| RUN pip install --no-cache-dir -r backend/requirements.txt | |
| # Copy backend and frontend folders | |
| COPY backend ./backend | |
| COPY frontend ./frontend | |
| # Switch to backend directory for running the server | |
| WORKDIR /app/backend | |
| # Expose port (Hugging Face Spaces requires port 7860) | |
| EXPOSE 7860 | |
| # Run FastAPI using Uvicorn on port 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |