-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (33 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM home/ubuntu as installit
ARG VERSION
RUN apt-get update
RUN apt-get install -y \
mesa-utils \
&& true
# fake the module tools, otherwise the installer bails
COPY modprobe.fake /sbin/modprobe
RUN ln /sbin/modprobe /sbin/lsmod \
&& ln /sbin/modprobe /sbin/rmmod \
&& ln /sbin/modprobe /sbin/insmod \
&& ln /sbin/modprobe /sbin/depmod \
&& true
# install nvidia driver
COPY NVIDIA-Linux-x86_64-$VERSION.run /nv/NVIDIA-DRIVER.run
RUN chmod a+x /nv/NVIDIA-DRIVER.run && /nv/NVIDIA-DRIVER.run -a \
--no-kernel-module \
--no-x-check \
--no-nvidia-modprobe \
--no-install-compat32-libs \
--expert \
--no-install-libglvnd \
--glvnd-glx-client \
--ui=none \
--install-libglvnd \
--opengl-headers \
&& ldconfig \
&& rm -rf /nv
# -s --no-kernel-module --no-x-check --no-nvidia-modprobe --no-install-compat32-libs --expert --no-install-libglvnd --glvnd-glx-client --install-libglvnd
# RUN useradd -c "nv run user" -m -s /bin/bash -u 500 -G audio,video nv
# USER nv
ENTRYPOINT [ ]
CMD [ ]