forked from jessfraz/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jess Frazelle <[email protected]>
- Loading branch information
Showing
3 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
FROM debian:sid | ||
FROM alpine:latest | ||
LABEL maintainer "Jessie Frazelle <[email protected]>" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
RUN apk add --no-cache \ | ||
ca-certificates \ | ||
libpcap-dev \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
libpcap-dev | ||
|
||
RUN buildDeps=' \ | ||
ENV MASSCAN_VERSION 1.0.5 | ||
|
||
RUN set -x \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
build-base \ | ||
clang \ | ||
gcc \ | ||
clang-dev \ | ||
git \ | ||
make \ | ||
' \ | ||
&& set -x \ | ||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \ | ||
linux-headers \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& git clone --depth 1 https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \ | ||
&& cd /usr/src/masscan \ | ||
&& git clone --depth 1 --branch "$MASSCAN_VERSION" https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \ | ||
&& ( \ | ||
cd /usr/src/masscan \ | ||
&& make \ | ||
&& make install \ | ||
) \ | ||
&& rm -rf /usr/src/masscan \ | ||
&& apt-get purge -y --auto-remove $buildDeps | ||
&& apk del .build-deps | ||
|
||
ENTRYPOINT [ "masscan" ] |