change masscan to alpine

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-13 19:23:01 -04:00
parent 049ac1b077
commit cabc5dad9c
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 17 additions and 15 deletions

View File

@ -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

View File

@ -107,6 +107,7 @@ google/guetzli
irssi/irssi
cryptodotis/irssi-otr
keepassxreboot/keepassxc
robertdavidgraham/masscan
zyedidia/micro
bitly/oauth2_proxy
Tautulli/Tautulli

View File

@ -1,26 +1,27 @@
FROM debian:sid
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
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" ]