From 062865eaa68944272b7b402f862bfc5b338da318 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sun, 24 Oct 2021 11:54:43 +1300 Subject: [PATCH] Use buster, stable not working (?); Prevent git clone cache --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 221d0667..55098f1b 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:stable +FROM debian:buster # Switch to the root user while we do our changes USER root @@ -38,7 +38,9 @@ RUN wget -q -O - https://apt.mopidy.com/mopidy.gpg \ # Clone Iris from the repository and install in development mode. # This allows a binding at "/iris" to map to your local folder for development, rather than # installing using pip. -RUN git clone https://github.com/jaedb/Iris.git /iris \ +# Note using ADD helps prevent caching issues. When HEAD changes, our cache is invalidated, whee! +ADD https://api.github.com/repos/jaedb/Iris/git/refs/heads/master version.json +RUN git clone -b master https://github.com/jaedb/Iris.git /iris \ && cd /iris \ && python3 setup.py develop \ && mkdir -p /var/lib/mopidy/.config \