VaniAI / Dockerfile
Susovan85's picture
Upload 11 files
c07919e verified
raw
history blame contribute delete
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"]