# Use Python 3.10 slim image FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements file COPY requirements.txt . # Install system dependencies and Python libraries RUN apt-get update && \ apt-get install -y ffmpeg build-essential && \ pip install --no-cache-dir -r requirements.txt # Copy app files (app.py + word_syllables.py) COPY . . # Expose the port EXPOSE 7860 # Run FastAPI CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]