-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
76 lines (64 loc) · 1.49 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
FROM ubuntu:18.04
LABEL maintainer="Jeroen Ketelaar"
RUN apt-get update && \
apt-get upgrade -y
# Tools necessary for installing and configuring Ubuntu
RUN apt-get install -y \
apt-utils \
locales \
tzdata
# Timezone
RUN echo "Europe/Amsterdam" | tee /etc/timezone && \
ln -fs /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Locale with UTF-8 support
RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen && \
locale-gen && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Adding https support for packages
RUN apt-get update && apt-get install -y apt-transport-https
# Installing Python3
RUN apt-get install -y \
python3.7 \
python3-pip
# Basic tools
RUN apt-get install -y \
bash-completion \
bc \
cron \
curl \
git \
inetutils-traceroute \
iputils-ping \
jq \
lsof \
man \
netcat \
nmap \
psmisc \
screen \
socat \
telnet \
unzip \
vim \
sysstat \
wget
# Admin tools
RUN apt-get install -y \
expect
# Python development
RUN apt-get install -y \
python-pip
python3-pip
# C development
RUN apt-get install -y \
clang \
gdb
# Config
RUN echo 'defshell -bash' >> /root/.screenrc
RUN echo 'if [ -f /etc/bash_completion ] && ! shopt -oq posix; then' >> /root/.bashrc && \
echo ' . /etc/bash_completion' >> /root/.bashrc && \
echo 'fi' >> /root/.bashrc