forked from hacksysteam/gdb-cross-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
88 lines (76 loc) · 1.86 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
ARG CODE_NAME
FROM ${CODE_NAME}
ENV DEBIAN_FRONTEND=noninteractive
#
# Install utils
#
RUN apt-get update -q && \
apt-get -q -y upgrade && \
apt-get -y install --no-install-recommends \
sudo \
git \
gpg \
curl \
cmake \
make \
file \
zip \
unzip \
wget \
xxd \
xz-utils \
software-properties-common && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
#
# Install cross compilers
#
RUN apt-get update -q && \
apt-get -q -y upgrade && \
apt-get -y install --no-install-recommends \
binutils \
binutils-multiarch \
binutils-multiarch-dev \
build-essential \
crossbuild-essential-i386 \
crossbuild-essential-armel \
crossbuild-essential-armhf \
crossbuild-essential-arm64 \
crossbuild-essential-mipsel \
crossbuild-essential-mips \
crossbuild-essential-mips64 && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
#
# Install gdb dependencies
#
RUN apt-get update -q && \
apt-get -q -y upgrade && \
apt-get -y install --no-install-recommends \
texinfo \
libncurses-dev \
libmpfr-dev \
libmpfrc++-dev \
libgmp-dev \
libexpat1-dev \
libunwind-dev \
libc6-dev \
python3 \
python3-dev \
python3-distutils \
python-dev-is-python3 && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
RUN mkdir -p /gdb/
# ARG USER="gdb"
# RUN adduser --disabled-password --gecos "" ${USER} && \
# adduser ${USER} sudo && \
# echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# USER ${USER}
WORKDIR /gdb/