2018-07-14 01:23:01 +02:00
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-08-06 01:52:59 +02:00
|
|
|
|
2018-07-14 01:23:01 +02:00
|
|
|
RUN apk add --no-cache \
|
2015-08-06 01:52:59 +02:00
|
|
|
ca-certificates \
|
2018-07-14 01:23:01 +02:00
|
|
|
libpcap-dev
|
2015-08-06 01:52:59 +02:00
|
|
|
|
2018-07-14 01:23:01 +02:00
|
|
|
ENV MASSCAN_VERSION 1.0.5
|
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
build-base \
|
2017-10-10 19:39:43 +02:00
|
|
|
clang \
|
2018-07-14 01:23:01 +02:00
|
|
|
clang-dev \
|
2015-08-06 01:52:59 +02:00
|
|
|
git \
|
2018-07-14 01:23:01 +02:00
|
|
|
linux-headers \
|
2015-08-06 01:52:59 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2018-07-14 01:23:01 +02:00
|
|
|
&& git clone --depth 1 --branch "$MASSCAN_VERSION" https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \
|
|
|
|
&& ( \
|
|
|
|
cd /usr/src/masscan \
|
2015-08-06 01:52:59 +02:00
|
|
|
&& make \
|
|
|
|
&& make install \
|
2018-07-14 01:23:01 +02:00
|
|
|
) \
|
2015-08-06 01:52:59 +02:00
|
|
|
&& rm -rf /usr/src/masscan \
|
2018-07-14 01:23:01 +02:00
|
|
|
&& apk del .build-deps
|
2015-08-06 01:52:59 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "masscan" ]
|