debian-*-build: Ensure rebuild on changes in upstream

Let's use the well-known hack of adding the "Release" file
of the respective debian distribution/version to ensure docker
will invalidate the cache if the repository has changed since
the last build.

Change-Id: If6f75db11ef424e46c4915b761f9eca69258a9c5
This commit is contained in:
Harald Welte 2018-09-26 09:34:11 +02:00
parent 643de5ed2e
commit 2ae3487e01
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ FROM debian:jessie
MAINTAINER Harald Welte <laforge@gnumonks.org>
ADD http://ftp.de.debian.org/debian/dists/jessie/Release /tmp/Release
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \

View File

@ -2,6 +2,7 @@ FROM debian:stretch
MAINTAINER Harald Welte <laforge@gnumonks.org>
ADD http://ftp.de.debian.org/debian/dists/stretch/Release /tmp/Release
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \