# Use Python 3.10 (Standard for voice AI) FROM python:3.10-slim # Set the working directory WORKDIR /app # Install system dependencies (ffmpeg is crucial for audio) RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Copy requirements first (to cache dependencies) COPY requirements.txt packages.txt ./ # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app (The . means "everything in current folder") COPY . . # Expose the port Streamlit uses EXPOSE 8501 # Run the app CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]