Spaces:
Runtime error
Runtime error
File size: 770 Bytes
b9bd75d bab0ce4 b9bd75d bab0ce4 fe28d37 bab0ce4 b9bd75d bab0ce4 b9bd75d dfc0edd |
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 |
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"] |