Skip to content

Instantly share code, notes, and snippets.

@trigun117
Created February 2, 2018 08:11
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trigun117/e95cb94bbdea2c258b888be1dac10bdf to your computer and use it in GitHub Desktop.
Save trigun117/e95cb94bbdea2c258b888be1dac10bdf to your computer and use it in GitHub Desktop.
Dockerfile for build image with Nemesida Scanner
Dockerfile
----------------------------------------------------------------------------------------------------------------------
FROM debian
RUN apt-get update &&\
apt-get upgrade -y &&\
apt-get dist-upgrade -y &&\
apt install wget -y &&\
apt-get update && apt-get install apt-transport-https -y &&\
echo "deb https://nemesida-security.com/ns/debian stretch non-free" > /etc/apt/sources.list.d/NemesidaScanner.list &&\
apt install gnupg -y &&\
apt install gnupg2 -y &&\
apt install gnupg1 -y &&\
wget -O - https://nemesida-security.com/ns/gpg.key | apt-key add - &&\
apt-get update && apt-get upgrade -y && apt-get install nscanner-cli -y &&\
cd /opt/nscanner-cli &&\
rm -r nscanner-cli.conf &&\
wget https://s3.eu-west-2.amazonaws.com/projects-transfer/nscanner-cli.conf
EXPOSE 80/tcp
CMD [ "bash" ]
---------------------------------------------
Build command:
docker build -t nemesida_scanner -f Dockerfile .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment