File size: 643 Bytes
350cd25
8bd6f23
 
 
 
 
884c57c
8bd6f23
 
 
 
 
 
b0787ea
 
 
350cd25
 
884c57c
8bd6f23
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 # βœ… Use Python 3.9 as the base image
FROM python:3.9

# βœ… Set the working directory
WORKDIR /app

# βœ… Install system dependencies (FFmpeg for audio processing)
RUN apt-get update && apt-get install -y \
    ffmpeg \
    libgl1-mesa-glx \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

# βœ… Copy project files
COPY . .

# βœ… Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# βœ… Expose required ports (FastAPI & Streamlit)
EXPOSE 7860 8501

# βœ… Run both FastAPI and Streamlit
CMD uvicorn app:app --host 0.0.0.0 --port 7860 & streamlit run app_ui.py --server.port 8501 --server.address 0.0.0.0