2015-08-06 01:52:59 +02:00
|
|
|
FROM debian:sid
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-08-06 01:52:59 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
ca-certificates \
|
|
|
|
libpcap-dev \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN buildDeps=' \
|
2017-10-10 19:39:43 +02:00
|
|
|
clang \
|
2015-08-06 01:52:59 +02:00
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
make \
|
|
|
|
' \
|
|
|
|
&& set -x \
|
|
|
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2016-12-28 02:04:58 +01:00
|
|
|
&& git clone --depth 1 https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \
|
2015-08-06 01:52:59 +02:00
|
|
|
&& cd /usr/src/masscan \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& rm -rf /usr/src/masscan \
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps
|
|
|
|
|
|
|
|
ENTRYPOINT [ "masscan" ]
|