FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel | |
# Install dependencies | |
RUN pip install uv | |
RUN apt update && \ | |
apt install -y espeak-ng && \ | |
rm -rf /var/lib/apt/lists/* | |
# Set working directory | |
WORKDIR /app | |
# Clone the repository | |
RUN git clone https://github.com/Zyphra/Zonos.git && cd Zonos | |
# Copy application files | |
COPY . . | |
# Install Python dependencies | |
RUN uv pip install --system -e . && uv pip install --system -e .[compile] | |
# Expose the Gradio default port | |
EXPOSE 7860 | |
# Run the Gradio app | |
CMD ["python", "app.py"] | |