mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +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 \
|
&& CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /usr/bin/k8scan *.go \
|
||||||
&& echo "Build complete."
|
&& echo "Build complete."
|
||||||
|
|
||||||
FROM scratch
|
FROM r.j3ss.co/masscan
|
||||||
|
|
||||||
COPY --from=builder /usr/bin/k8scan /usr/bin/k8scan
|
COPY --from=builder /usr/bin/k8scan /usr/bin/k8scan
|
||||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||||
|
|
|
@ -107,6 +107,7 @@ google/guetzli
|
||||||
irssi/irssi
|
irssi/irssi
|
||||||
cryptodotis/irssi-otr
|
cryptodotis/irssi-otr
|
||||||
keepassxreboot/keepassxc
|
keepassxreboot/keepassxc
|
||||||
|
robertdavidgraham/masscan
|
||||||
zyedidia/micro
|
zyedidia/micro
|
||||||
bitly/oauth2_proxy
|
bitly/oauth2_proxy
|
||||||
Tautulli/Tautulli
|
Tautulli/Tautulli
|
||||||
|
|
|
@ -1,26 +1,27 @@
|
||||||
FROM debian:sid
|
FROM alpine:latest
|
||||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libpcap-dev \
|
libpcap-dev
|
||||||
--no-install-recommends \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN buildDeps=' \
|
ENV MASSCAN_VERSION 1.0.5
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
|
build-base \
|
||||||
clang \
|
clang \
|
||||||
gcc \
|
clang-dev \
|
||||||
git \
|
git \
|
||||||
make \
|
linux-headers \
|
||||||
' \
|
|
||||||
&& set -x \
|
|
||||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& git clone --depth 1 https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \
|
&& git clone --depth 1 --branch "$MASSCAN_VERSION" https://github.com/robertdavidgraham/masscan.git /usr/src/masscan \
|
||||||
&& cd /usr/src/masscan \
|
&& ( \
|
||||||
|
cd /usr/src/masscan \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
) \
|
||||||
&& rm -rf /usr/src/masscan \
|
&& rm -rf /usr/src/masscan \
|
||||||
&& apt-get purge -y --auto-remove $buildDeps
|
&& apk del .build-deps
|
||||||
|
|
||||||
ENTRYPOINT [ "masscan" ]
|
ENTRYPOINT [ "masscan" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user