# Use slim Python 3.11 base image FROM python:3.11-slim # Set environment variables ENV PYTHONUNBUFFERED=1 ENV PORT=7860 ENV STREAMLIT_WATCHER_TYPE=none ENV SPEECHBRAIN_CACHE=/data/speechbrain # Install system dependencies RUN apt-get update && apt-get install -y ffmpeg git && apt-get clean # Create app directory WORKDIR /app # Copy all project files COPY . /app # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Run the Streamlit app CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]