Skip to content

Commit aee2e26

Browse files
committed
update Dockerfile
1 parent c9e947e commit aee2e26

File tree

1 file changed

+42
-11
lines changed

1 file changed

+42
-11
lines changed

k8s/templates/Dockerfile

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,48 @@ ENV PYTHONUNBUFFERED=1
1414
ENV DEBIAN_FRONTEND=noninteractive
1515
ENV 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

2960
RUN ln -sf /usr/bin/python3 /usr/bin/python
3061

0 commit comments

Comments
 (0)