In my Dockerfile I use curl or ADD to download the latest version of an archive like:
Dockerfile
curl
ADD
FROM debian:jessie ... RUN apt-g
add && exit 0 after a command will invalidate the cache from there.
&& exit 0
Example:
RUN apt-get install -y unzip && exit 0