-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (33 loc) · 948 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (33 loc) · 948 Bytes
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
FROM base/archlinux
# Locale settings
RUN pacman -Sy --noconfirm \
sed \
gzip \
grep \
awk \
which \
patch \
tar && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen; locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Download and install NVIDIA CUDA
RUN mkdir -p /nvidia/build && \
cd /nvidia/build/ && \
curl -o nvidia-install http://us.download.nvidia.com/XFree86/Linux-x86_64/375.66/NVIDIA-Linux-x86_64-375.66.run && \
chmod +x nvidia-install && \
/nvidia/build/nvidia-install -s -N --no-kernel-module && \
rm -r /nvidia/
#
# Install cuda from reqo
# Dependencies are skipped to avoid installing of nvidia driver
#
RUN pacman -S --noconfirm -dd \
cuda \
gcc5 \
libmpc \
binutils && \
pacman -Scc --noconfirm
ENV PATH=$PATH:/opt/cuda/bin
CMD nvidia-smi