File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change 1+ # Base image with CUDA 12.1 runtime and cuDNN
12FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
23
4+ # Install essential system tools and Python
35RUN 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
2027WORKDIR /workspace
2128
29+ # Clone the repository and install segger with CUDA 12 support
2230RUN 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
2734ENV PYTHONPATH=/workspace/segger_dev/src:$PYTHONPATH
35+
36+ # expose ports for debugpy and jupyterlab
37+ EXPOSE 5678 8888
You can’t perform that action at this time.
0 commit comments