# ✅ 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