Spaces:
Runtime error
Runtime error
# β 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 | |