Merge pull request #226 from yoanisgil/build-args

Make jenkins version configurable via build-arg
diff --git a/Dockerfile b/Dockerfile
index d43dfd9..2c4694a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,8 +33,10 @@
 
 COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy
 
-ENV JENKINS_VERSION 1.642.2
-ENV JENKINS_SHA e72e06e64d23eefb13090459f517b0697aad7be0
+ARG JENKINS_VERSION
+ENV JENKINS_VERSION ${JENKINS_VERSION:-1.642.2}
+ARG JENKINS_SHA
+ENV JENKINS_SHA ${JENKINS_SHA:-e72e06e64d23eefb13090459f517b0697aad7be0}
 
 
 # could use ADD but this one does not check Last-Modified header