Skip to content

Commit

Permalink
change masscan to alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jul 13, 2018
1 parent 049ac1b commit cabc5da
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion k8scan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN set -x \
&& CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/k8scan *.go \
&& echo "Build complete."

FROM scratch
FROM r.j3ss.co/masscan

COPY --from=builder /usr/bin/k8scan /usr/bin/k8scan
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
Expand Down
1 change: 1 addition & 0 deletions latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ google/guetzli
irssi/irssi
cryptodotis/irssi-otr
keepassxreboot/keepassxc
robertdavidgraham/masscan
zyedidia/micro
bitly/oauth2_proxy
Tautulli/Tautulli
Expand Down
29 changes: 15 additions & 14 deletions masscan/Dockerfile
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" ]

0 comments on commit cabc5da

Please sign in to comment.