tts-api / dockerfile
Avinyaa
new
9a88d9c
raw
history blame
715 Bytes
FROM python:3.11
WORKDIR /app
# Install git and git-lfs
RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/*
# Initialize git lfs
RUN git lfs install
COPY requirements.txt .
RUN pip install uv
RUN uv pip install --no-cache-dir -r requirements.txt --system
echo "Cloning the XTTS-v2_C3PO model..."
# Clone the XTTS-v2_C3PO model and verify it
RUN git clone https://huggingface.co/Borcherding/XTTS-v2_C3PO && \
ls -la XTTS-v2_C3PO/ && \
echo "Model directory contents:" && \
find XTTS-v2_C3PO/ -type f -name "*.json" -o -name "*.pth" -o -name "*.pt" | head -10
COPY . .
# Expose the port
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]