Skip to content

Commit 35b0374

Browse files
Update Dockerfile
1 parent 7eacf81 commit 35b0374

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

Dockerfile

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
1+
# Base image with CUDA 12.1 runtime and cuDNN
12
FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
23

4+
# Install essential system tools and Python
35
RUN apt-get update -y && apt-get install -y --no-install-recommends \
46
git \
57
wget \
6-
tmux \
7-
vim \
8-
htop \
9-
zip \
8+
curl \
109
unzip \
10+
htop \
11+
vim \
1112
build-essential \
1213
python3 \
13-
python3-pip && \
14-
apt-get clean && \
14+
python3-pip \
15+
python3-venv \
16+
&& apt-get clean && \
1517
rm -rf /var/lib/apt/lists/*
1618

17-
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
18-
pip install --no-cache-dir debugpy
19+
# Create a symbolic link to enable `python` instead of `python3`
20+
RUN ln -s /usr/bin/python3 /usr/bin/python
1921

22+
# Install global python tools
23+
RUN python -m pip install --no-cache-dir --upgrade pip && \
24+
pip install --no-cache-dir debugpy jupyterlab
25+
26+
# Set working directory
2027
WORKDIR /workspace
2128

29+
# Clone the repository and install segger with CUDA 12 support
2230
RUN git clone https://github.com/EliHei2/segger_dev.git /workspace/segger_dev && \
23-
pip install -e "/workspace/segger_dev[cuda12,rapids12,cupy12,faiss]"
24-
25-
EXPOSE 5678
31+
pip install -e "/workspace/segger_dev[cuda12]"
2632

33+
# Set environment variables
2734
ENV PYTHONPATH=/workspace/segger_dev/src:$PYTHONPATH
35+
36+
# expose ports for debugpy and jupyterlab
37+
EXPOSE 5678 8888

0 commit comments

Comments
 (0)