# Hugging Face Spaces uses port 7860 by default FROM python:3.10-slim # Set working directory WORKDIR /app # Install system dependencies: ffmpeg for audio conversion RUN apt-get update && apt-get install -y \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Copy requirements first for Docker layer caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application source COPY . . # Hugging Face Spaces expects the app to listen on port 7860 EXPOSE 7860 # Pass CLEANVOICE_API_KEY as a build-time or runtime secret via HF Space secrets # Set it in your Space settings under "Repository secrets" ENV CLEANVOICE_API_KEY="" # Launch the app (update this command to match your entrypoint, e.g. app.py) CMD ["python", "app.py"]