Commit 7fca40b7 authored by nimrod's avatar nimrod
Browse files

Set version of masscan to checkout and build.

parent f9502e65
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
FROM buildpack-deps:stretch-scm as build
ARG VERSION=1.0.5
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
    apt-get install -y \
@@ -6,11 +7,13 @@ RUN apt-get update && \
        clang \
        libpcap-dev \
    && \
    git clone https://github.com/robertdavidgraham/masscan.git && \
    git clone https://github.com/robertdavidgraham/masscan.git --branch ${VERSION} && \
    cd masscan && \
    make -j

FROM debian:stretch-slim
ARG VERSION=1.0.5
LABEL MASSCAN_VERSION=${VERSION}
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y libpcap0.8 && \
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*