tts-api / Dockerfile
Avinyaa
new
f5097fd
raw
history blame
792 Bytes
FROM python:3.11
WORKDIR /app
# Set environment variables to fix Numba caching issues
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_DISABLE_JIT=1
# 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
# 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"]