Spaces:
Runtime error
Runtime error
Download Dockerfile from Clearwave48/denoiser-api: direct link, hf CLI and curl.
- Browser
- Download file 765 Bytes
-
https://huggingface.co/spaces/Clearwave48/denoiser-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Clearwave48/denoiser-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Clearwave48/denoiser-api/resolve/main/Dockerfile
765 Bytes
| # 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"] |