Spaces:
Build error
Build error
Download Dockerfile from codex-automatus/XTTS123: direct link, hf CLI and curl.
- Browser
- Download file 729 Bytes
-
https://huggingface.co/spaces/codex-automatus/XTTS123/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/codex-automatus/XTTS123/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/codex-automatus/XTTS123/resolve/main/Dockerfile
729 Bytes
| FROM python:3.9-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| git \ | |
| build-essential \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create non-root user | |
| RUN useradd -m -u 1000 user | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first (for better caching) | |
| COPY --chown=user:user requirements.txt ./ | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app | |
| COPY --chown=user:user . . | |
| # Switch to non-root user | |
| USER user | |
| # Expose port (for Gradio/Streamlit) | |
| EXPOSE 7860 | |
| # Run command | |
| CMD ["python", "app.py"] |