20 lines
554 B
Docker
Raw Permalink Normal View History

# Install PyTorch 2.5 with CUDA 12.4
FROM pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
2024-02-26 20:24:15 +08:00
# Install Ubuntu packages
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y rsync git curl ca-certificates && \
rm -rf /var/lib/apt/lists/*
2024-02-26 20:24:15 +08:00
# Install uv
2025-10-06 18:31:59 -05:00
RUN curl -fsSL https://astral.sh/uv/install.sh -o uv-installer.sh && \
sh uv-installer.sh && \
rm uv-installer.sh
ENV PATH="/root/.local/bin:$PATH"
# Install Python packages
2024-02-26 20:24:15 +08:00
COPY requirements.txt requirements.txt
RUN uv pip install --system --no-cache -r requirements.txt