-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gdbserver.template
57 lines (48 loc) · 1.01 KB
/
Dockerfile.gdbserver.template
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
# Using Ubuntu as base image.
FROM <OS>:<VERSION>
# Label base
LABEL maintainer="Alex Kislitsa"
ENV DEBIAN_FRONTEND noninteractive
ENV TZ UTC
RUN dpkg --add-architecture i386 && \
apt-get -y update && \
apt install -y \
libc6:i386 \
libc6-dbg:i386 \
libc6-dbg \
lib32stdc++6 \
build-essential \
cpio \
unzip \
bc \
make \
vim \
tmux \
strace \
ltrace \
nasm \
wget \
gdb \
gdb-multiarch \
gdbserver \
netcat \
socat \
git \
python3-dev \
python3-setuptools \
tzdata --fix-missing \
sudo && \
apt install locales --reinstall && \
rm -rf /var/lib/apt/list/* && \
ln /usr/bin/python3 /usr/bin/python
# Create non-root user
RUN useradd -m adam && usermod -aG sudo adam
# New added for disable sudo password
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
COPY locale.gen /etc/
RUN locale-gen
# Initilise base user
USER adam
WORKDIR /home/adam
ENV HOME /home/adam
COPY .tmux.conf ${HOME}/.tmux.conf