-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
66 lines (56 loc) · 1.59 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
#################
# 42 Valgrind Container
FROM ubuntu:focal
# Suppress an apt-key warning about standard out not being a terminal. Use in this script is safe.
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update --no-install-recommends -y && apt-get install --no-install-recommends \
'build-essential' \
"man-db" \
"valgrind" \
"gdb" \
'automake' \
'make' \
'ca-certificates' \
'g++' \
'libtool' \
'pkg-config' \
'manpages-dev' \
'zip' \
'unzip' \
'python3' \
'python3-pip' \
'git' \
'openssh-server' \
'dialog' \
'llvm' \
'clang' \
'libbsd-dev' \
'curl' \
'wget' \
'zsh' \
'nano' \
'vim' \
'libreadline-dev' \
'moreutils' \
'ruby' \
'htop' \
'irssi' \
'netcat' \
'tcpdump' \
-y \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
# Install 42 Norminette
RUN python3 -m pip install --upgrade pip setuptools && python3 -m pip install norminette && mkdir -p /home/vscode/src
# Install oh-my-zsh and update user prompt
RUN sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" && echo 'PROMPT=%B%F{blue}[DOCKER]%f%b$PROMPT' >> /root/.zshrc
# Remove symlink to c++ and replace with g++
RUN rm /usr/bin/c++ && ln -s /usr/bin/g++ /usr/bin/c++
WORKDIR /home/vscode/src
ENV DEBIAN_FRONTEND=dialog
# Add Return Code in prompt for bash
ENV PROMPT_COMMAND='RET=$?; echo -n "[$RET] "'
LABEL maintainer="Dale Furneaux <opinfosec>" \
version="2.3.0"