FROM ubuntu:18.04 # Install RUN apt update RUN apt install -y git gcc make libpcap-dev RUN git clone https://github.com/robertdavidgraham/masscan /home/masscan WORKDIR /home/masscan # Build RUN make -j # Mount the output dir RUN mkdir /output ENTRYPOINT /home/masscan/bin/masscan -p80 116.203.39.00/24 | tee /output/out.txt