File tree Expand file tree Collapse file tree 1 file changed +42
-11
lines changed
Expand file tree Collapse file tree 1 file changed +42
-11
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,48 @@ ENV PYTHONUNBUFFERED=1
1414ENV DEBIAN_FRONTEND=noninteractive
1515ENV TZ=Europe/Berlin
1616
17- RUN apt-get update \
18- && apt-get install -y \
19- python3-dev \
20- python3-venv \
21- python3-distutils \
22- ninja-build \
23- git \
24- curl \
25- libfl-dev \
26- && rm -rf /var/lib/apt/lists/*
27- # https://askubuntu.com/questions/1465653/usr-bin-ld-cannot-find-ll-no-such-file-or-directory/1465654#1465654
17+ Dockerfile
18+ FROM nvidia/cuda:12.6.3-devel-ubuntu24.04
19+
20+ ARG USER={{lastname}}
21+ ARG UID={{uuid}}
22+
23+ # 1. Create the home directory first
24+ RUN mkdir -p /localdir/
25+
26+ # 2. Delete the default 'ubuntu' user (UID 1000) to avoid conflict
27+ RUN userdel -r ubuntu || true
28+
29+ # 3. Create your custom user
30+ RUN adduser ${USER} --uid ${UID} --home /localdir/ --disabled-password --gecos "" --no-create-home
31+
32+ SHELL ["/bin/bash" , "-c" ]
33+
34+ ENV PYTHONUNBUFFERED=1
35+ ENV DEBIAN_FRONTEND=noninteractive
36+ ENV TZ=Europe/Berlin
37+
38+ # 4. Merged Package List
39+ # Note: python3-distutils removed (deprecated in Py3.12)
40+ RUN apt-get update && apt-get install -y \
41+ build-essential \
42+ cmake \
43+ curl \
44+ git \
45+ libfl-dev \
46+ libibverbs1 \
47+ libnl-3-dev \
48+ libnl-route-3-dev \
49+ libudev-dev \
50+ ninja-build \
51+ pkg-config \
52+ python3.12 \
53+ python3.12-dev \
54+ python3.12-venv \
55+ vim \
56+ wget \
57+ && rm -rf /var/lib/apt/lists/* \
58+
2859
2960RUN ln -sf /usr/bin/python3 /usr/bin/python
3061
You can’t perform that action at this time.
0 commit comments