forked from IkuoShige/Nvidia-sdkmanager-docker-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (68 loc) · 2.04 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# ARGUMENTS
ARG DISTR=20.04
ARG SDK_MANAGER_DOCKER_VERSION=1.9.3.10904
# set defalt base_image
FROM sdkmanager:${SDK_MANAGER_DOCKER_VERSION}-Ubuntu_${DISTR}
#FROM sdkmanager:1.9.3.10904-Ubuntu_18.04
# add new sudo user
ENV USERNAME nvidia
# Install required packages
USER root
RUN echo "Acquire::GzipIndexes \"false\"; Acquire::CompressionTypes::Order:: \"gz\";" > /etc/apt/apt.conf.d/docker-gzip-indexes \
&& DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
apt-utils \
curl \
git \
vim \
gpg \
gpg-agent \
gpgconf \
gpgv \
less \
libcanberra-gtk-module \
libcanberra-gtk3-module \
libgconf-2-4 \
libgtk-3-0 \
libnss3 \
libx11-xcb1 \
libxss1 \
libxtst6 \
net-tools \
python \
sshpass \
qemu-user-static \
binfmt-support \
libxshmfence1 \
tzdata \
locales \
sudo \
wget \
ca-certificates \
usbutils \
liblz4-tool \
libxml2-utils \
libdrm-dev \
libgbm-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Google Chrome
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
x11vnc \
xvfb \
fluxbox \
wmctrl \
gnupg2 \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
google-chrome-stable \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Configure QEMU to fix https://forums.developer.nvidia.com/t/nvidia-sdk-manager-on-docker-container/76156/18
# And, I referred to https://github.com/MiroPsota/sdkmanagerGUI_docker
COPY enable_qemu_arm.sh /home/${USERNAME}/
ENTRYPOINT ["/bin/bash", "-c", "/home/nvidia/enable_qemu_arm.sh"]