-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# attach to container in vsc, change directory to /workspace and select /opt/venv as kernel
FROM nvidia/cuda:13.2.0-cudnn-runtime-ubuntu24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3 \
python3-venv \
python3-pip \
python3-dev \
git \
ninja-build \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install --no-cache-dir --upgrade numpy tqdm scipy matplotlib jupyterlab ipykernel
RUN pip install --no-cache-dir --upgrade torch torchvision --index-url https://download.pytorch.org/whl/cu130