Created
February 2, 2018 08:11
-
-
Save squaredice/e95cb94bbdea2c258b888be1dac10bdf to your computer and use it in GitHub Desktop.
Dockerfile for build image with Nemesida Scanner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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