Spaces:
Runtime error
Runtime error
File size: 765 Bytes
1faa95f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # 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"] |