Spaces:
Paused
Paused
Download Dockerfile from duqing26/audiogram-studio: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/duqing26/audiogram-studio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/duqing26/audiogram-studio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/duqing26/audiogram-studio/resolve/main/Dockerfile
576 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies including FFmpeg and fonts | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Generate demo assets | |
| RUN python3 generate_assets.py | |
| # Create directories for uploads/outputs | |
| RUN mkdir -p uploads outputs && chmod 777 uploads outputs | |
| # Create a non-root user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |