-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·36 lines (33 loc) · 977 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·36 lines (33 loc) · 977 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
FROM ubuntu:bionic
MAINTAINER Leonardo Loures <luvres@hotmail.com>
## Bionic 18.04
# https://drivers.amd.com/drivers/linux/amdgpu-pro-19.30-855429-ubuntu-18.04.tar.xz
RUN \
amdgpu_version="amdgpu-pro-19.30-855429-ubuntu-18.04" \
&& url="http://support.amd.com https://drivers.amd.com/drivers/linux/${amdgpu_version}.tar.xz" \
\
&& cd \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get --no-install-recommends install -y \
ca-certificates curl xz-utils \
clinfo \
\
&& curl -L -O --referer ${url} \
\
&& tar -Jxvf ${amdgpu_version}.tar.xz \
&& rm ${amdgpu_version}.tar.xz \
&& bash ./${amdgpu_version}/amdgpu-pro-install -y \
&& rm -fR ${amdgpu_version} \
\
&& apt-get install -y opencl-amdgpu-pro \
\
&& apt-get -y remove \
ca-certificates curl xz-utils \
\
&& echo "root:@p4sS_-_#sECURITy*Cre4t3+bigZone" | chpasswd \
&& apt-get autoremove -y \
\
&& apt-get clean autoclean \
&& rm -fR /var/lib/{apt,dpkg}
WORKDIR /root