xtts-multilingual / Dockerfile
Loomis Green
Update API: Add speakers directory, LFS tracking, and /speakers endpoint
c16f3f2
raw
history blame contribute delete
667 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies for Coqui TTS and audio processing
RUN apt-get update && apt-get install -y \
git \
libsndfile1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Environment variables
ENV HF_HOME=/app/cache
ENV COQUI_TOS_AGREED=1
# Create cache directory
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
RUN mkdir -p /app/speakers && chmod -R 777 /app/speakers
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]