2024-10-23 03:23:31 +02:00
|
|
|
# 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
|
|
|
|
2024-10-23 03:23:31 +02:00
|
|
|
# Install Ubuntu packages
|
2024-03-11 08:06:48 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
2025-02-18 21:53:19 +01:00
|
|
|
apt-get install -y rsync git curl ca-certificates && \
|
2024-03-11 08:06:48 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
2024-02-26 20:24:15 +08:00
|
|
|
|
2025-02-18 21:53:19 +01:00
|
|
|
# Install uv
|
|
|
|
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
|
|
|
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
|
|
|
ENV PATH="/root/.local/bin/:$PATH"
|
|
|
|
|
2024-10-23 03:23:31 +02:00
|
|
|
# Install Python packages
|
2024-02-26 20:24:15 +08:00
|
|
|
COPY requirements.txt requirements.txt
|
2025-02-18 21:53:19 +01:00
|
|
|
RUN uv pip install --system --no-cache -r requirements.txt
|