forked from RocketChat/TenableAgent-Daemonset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (13 loc) · 863 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM bitnami/minideb:latest
ARG NESSUS_SHA256="3e3287344dd133db0402c9ea313b75ce5de86b7128292d22c427ff57f5a5bc61 NessusAgent-10.3.1-ubuntu1404_amd64.deb"
ARG NESSUS_URL="https://d2530cnixqlh3k.cloudfront.net/nessus-agent/NessusAgent-10.3.1-ubuntu1404_amd64.deb"
LABEL maintainer="[email protected]"
#Download updates and Nessus Agent
RUN apt update -y && apt install -y --no-install-recommends gettext-base curl
RUN curl -s -k $NESSUS_URL -o NessusAgent-10.3.1-ubuntu1404_amd64.deb
#Check if the downloaded file have the same SHA256 hash provided by tenable in https://www.tenable.com/downloads/nessus-agents?loginAttempted=true
#Aborts if failed
RUN echo -n $NESSUS_SHA256 > sha256_signature.txt
RUN sha256sum -c sha256_signature.txt
#Install Nessus
RUN dpkg -i NessusAgent-10.3.1-ubuntu1404_amd64.deb && rm -rf NessusAgent-10.3.1-ubuntu1404_amd64.deb