From 7fca40b73b63a4aa7a47d76fcb4d180791f4016d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 13 Jun 2018 10:45:11 +0300
Subject: [PATCH] Set version of masscan to checkout and build.

---
 Dockerfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 56ddae6..a8e27e1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
 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/*
-- 
GitLab