-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
101 lines (89 loc) · 2 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# OS version
FROM ubuntu:22.04
# Add i386 architecture to allow installation of 32-bit libs
RUN dpkg --add-architecture i386
ENV DEBIAN_FRONTEND=noninteractive
ARG UID
ARG USER
ARG GID
ARG HOME
RUN groupadd -g $GID $USER
RUN useradd -u $UID -g $GID $USER -m -d $HOME -p "$(openssl passwd -1 123456)"
# RUN useradd -g $GID $USER -m -d $HOME
RUN usermod -aG sudo $USER
RUN apt-get update
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y apt-utils \
wget \
sudo \
net-tools \
bzip2 \
lib32stdc++6 \
python3 python3-dev \
git \
lcov \
cppcheck \
autogen \
autoconf \
libtool \
libxext-dev:i386 \
libxext-dev \
libfreetype6-dev:i386 \
libfreetype6-dev \
sudo \
python3-pip \
build-essential \
libc6-dbg \
libc6-dbg:i386 \
libc6-dev-i386 \
gcc-multilib \
g++-multilib \
openssh-client \
clang-format \
iwyu \
mesa-common-dev \
ccache \
curl \
sqlite3 \
zlib1g:i386 \
openjdk-8-jdk \
ruby-full \
apt-transport-https \
ca-certificates \
gnupg \
software-properties-common \
iproute2 \
valgrind \
clang-tidy \
firefox \
tmux \
ninja-build \
libharfbuzz-dev \
libglib2.0-dev \
glib2.0 \
xdotool \
xdg-dbus-proxy \
cpio \
rsync \
zsh \
bc \
libmount1:i386 \
libuuid1:i386 \
cmake \
nodejs
RUN apt-get install -y python-is-python3
RUN apt-get install -y gtk-doc-tools
# Get latest cmake version
#RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
#RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
#RUN apt-get update
# RUN apt-get install -y cmake
# RUN pip3 install junit2html
# RUN pip3 install pygments
USER $USER
# Setup working directory
WORKDIR $HOME