Dockerfile 532 B

1234567891011121314151617
  1. # Install PyTorch 2.5 with CUDA 12.4
  2. FROM pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
  3. # Install Ubuntu packages
  4. RUN apt-get update && \
  5. apt-get upgrade -y && \
  6. apt-get install -y rsync git curl ca-certificates && \
  7. rm -rf /var/lib/apt/lists/*
  8. # Install uv
  9. ADD https://astral.sh/uv/install.sh /uv-installer.sh
  10. RUN sh /uv-installer.sh && rm /uv-installer.sh
  11. ENV PATH="/root/.local/bin/:$PATH"
  12. # Install Python packages
  13. COPY requirements.txt requirements.txt
  14. RUN uv pip install --system --no-cache -r requirements.txt