Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| # Install Git | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Create non-root user | |
| RUN useradd -m -u 1000 user | |
| # Set working directory | |
| WORKDIR /app | |
| # Set permissions for /app to be writable by the non-root user | |
| RUN chown -R 1000:1000 /app && chmod -R 775 /app | |
| # Switch to non-root user for cloning and subsequent commands | |
| USER 1000 | |
| # Clone the repositories | |
| RUN git clone https://github.com/myshell-ai/MeloTTS /app/MeloTTS && \ | |
| git clone https://github.com/myshell-ai/OpenVoice /app/OpenVoice | |
| # Copy application files | |
| COPY --chown=1000:1000 . /app | |
| # Install Python dependencies (if any) | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| CMD ["python", "melotts_training.py"] |