-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
66 lines (60 loc) · 1.52 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
FROM ubuntu:focal
MAINTAINER [email protected]
RUN apt-get update > /dev/null \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bison \
cmake \
curl \
doxygen \
g++ \
gcc \
git-core \
gnutls-bin \
graphviz \
libical-dev \
libldap2-dev \
libgcrypt20-dev \
libglib2.0-dev \
libgpgme-dev \
libhiredis-dev \
libksba-dev \
libmicrohttpd-dev \
libpcap-dev \
libpq-dev \
libsnmp-dev \
libssh-gcrypt-dev \
libxml2-dev \
make \
nmap \
nodejs \
pkg-config \
postgresql \
postgresql-contrib \
postgresql-server-dev-all \
redis-server \
rsync \
sudo \
uuid-dev \
vim \
xml-twig-tools \
xmltoman \
xsltproc \
yarnpkg
# yarn for some reason is installed as yarnpkg and not yarn
RUN ln -s /usr/bin/yarnpkg /usr/bin/yarn
WORKDIR /openvas
RUN for i in gvm-libs gvmd openvas gsa; do \
git clone --depth=1 --branch v20.8.0 https://github.com/greenbone/$i; \
cd $i; \
cmake .; \
make install; \
cd ..; \
rm -rf $i; \
ldconfig; \
done
RUN echo 'nobody ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/01-nobody && \
chown -R nobody /openvas && \
chown -R nobody /usr/local/var/
ADD redis.conf /etc/redis/redis.conf
ADD setup.sh /openvas/setup.sh
USER nobody