mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
change masscan to alpine
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
049ac1b077
commit
cabc5dad9c
|
@ -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
|
||||
|
|
|
@ -107,6 +107,7 @@ google/guetzli
|
|||
irssi/irssi
|
||||
cryptodotis/irssi-otr
|
||||
keepassxreboot/keepassxc
|
||||
robertdavidgraham/masscan
|
||||
zyedidia/micro
|
||||
bitly/oauth2_proxy
|
||||
Tautulli/Tautulli
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user