16 lines
445 B
Docker
Raw 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 && \
2024-04-03 20:28:02 -05:00
apt-get install -y rsync && \
apt-get install -y git && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*
2024-02-26 20:24:15 +08:00
# Install Python packages
2024-02-26 20:24:15 +08:00
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip
2024-02-26 20:24:15 +08:00
RUN pip install --no-cache-dir -r requirements.txt