-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.nonintel.template
75 lines (66 loc) · 1.27 KB
/
Dockerfile.nonintel.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Using Ubuntu as base image.
FROM <OS>:<VERSION>
# Label base
LABEL maintainer="Alex Kislitsa"
ENV DEBIAN_FRONTEND noninteractive
ENV TZ UTC
RUN \
apt-get -y update && \
apt install -y \
libc6-dbg \
g++ gcc \
cmake \
pkg-config \
ipython3 \
vim \
net-tools \
iputils-ping \
libffi-dev \
libssl-dev \
python3-dev \
python3-pip \
build-essential \
ruby \
ruby-dev \
tmux \
strace \
ltrace \
nasm \
wget \
curl \
gdb \
gdbserver \
netcat \
socat \
git \
patchelf \
gawk \
file \
python3-distutils \
python3-dev \
python3-setuptools \
python3-capstone \
python3-bcrypt \
python3-cryptography \
python3-wheel \
libglib2.0-dev \
libc6-dbg \
bison \
rpm2cpio cpio \
zstd \
sudo \
xz-utils && \
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