File size: 486 Bytes
04e5e87 1d19201 04e5e87 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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
# Copy application files
COPY . .
# Install Python dependencies (modified for non-editable install)
COPY requirements.txt .
RUN uv pip install --system -r requirements.txt
# Expose the Gradio default port
EXPOSE 7860
# Run the Gradio app
CMD ["uv", "run", "app.py"] |