File size: 666 Bytes
81d62d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c07919e
 
81d62d4
c07919e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]