-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
37 lines (33 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
FROM centos:7
ENV LINKING_KEY ""
ENV SCANNER_NAME ""
ENV SCANNER_GROUPS ""
ENV MANAGER_HOST ""
ENV MANAGER_PORT ""
ENV PROXY_HOST ""
ENV PROXY_PORT ""
ENV PROXY_USER ""
ENV PROXY_PASS ""
ENV PROXY_AGENT ""
ENV LICENSE ""
ENV ADMIN_USER "admin"
ENV ADMIN_PASS ""
COPY nessus_startup.sh nessus_adduser.exp /usr/bin/
COPY yum.repo /etc/yum.repos.d/Tenable.repo
COPY gpg.key /etc/pki/rpm-gpg/RPM-GPG-KEY-Tenable
RUN yum -y -q install Nessus expect java-11-openjdk-headless \
&& yum -y -q clean all \
&& chmod 755 /usr/bin/nessus_startup.sh \
&& chmod 755 /usr/bin/nessus_adduser.exp \
&& rm -f /opt/nessus/var/nessus/*.db* \
&& rm -f /opt/nessus/var/nessus/master.key \
&& rm -f /opt/nessus/var/nessus/uuid \
&& rm -f /opt/nessus/var/nessus/CA/cakey.pem \
&& rm -f /opt/nessus/var/nessus/CA/serverkey.pem \
&& rm -rf /tmp/* \
&& ln -sf /dev/stdout /opt/nessus/var/nessus/logs/nessusd.messages \
&& ln -sf /dev/stdout /opt/nessus/var/nessus/logs/www_server.log \
&& ln -sf /dev/stdout /opt/nessus/var/nessus/logs/backend.log \
&& echo -e "export PATH=$PATH:/opt/nessus/bin:/opt/nessus/sbin" >> /etc/bashrc
EXPOSE 8834
CMD ["/usr/bin/nessus_startup.sh"]