I have the below Dockerfile.
FROM ubuntu:14.04
MAINTAINER Samuel Alexander
RUN
If place ARG INCUBATOR_VER=unknown
at top, then cache will not be used in case of change of INCUBATOR_VER
from command line (just tested the build).
For me worked:
# The rebuild starts from here
ARG INCUBATOR_VER=unknown
RUN INCUBATOR_VER=${INCUBATOR_VER} git clone https://github.com/apache/incubator-zeppelin.git