From 1f9b1e5d27ffb7d371020f5b2f3d2dcde0f4b8a3 Mon Sep 17 00:00:00 2001 From: willyb321 Date: Thu, 12 Mar 2020 06:01:11 +1100 Subject: [PATCH] invalidate docker cache for git pull --- Dockerfile | 3 +++ Dockerfile.dev | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index fc2aeacf..fb4d3284 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN mkdir -p /src/app/coriolis-data RUN apk add --update git RUN npm i -g npm +ADD https://api.github.com/repos/edcd/coriolis-data/git/refs/heads/master /tmp/version.json # Set up coriolis-data WORKDIR /src/app/coriolis-data @@ -16,6 +17,8 @@ RUN git checkout ${BRANCH} RUN npm install --no-package-lock RUN npm start + +ADD https://api.github.com/repos/edcd/coriolis/git/refs/heads/master /tmp/version.json # Set up coriolis WORKDIR /src/app/coriolis RUN git clone https://github.com/EDCD/coriolis.git . diff --git a/Dockerfile.dev b/Dockerfile.dev index c8562528..9934de70 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -9,6 +9,7 @@ RUN apk add --update git RUN npm i -g npm +ADD https://api.github.com/repos/edcd/coriolis-data/git/refs/heads/develop /tmp/version.json # Set up coriolis-data WORKDIR /src/app/coriolis-data RUN git clone https://github.com/EDCD/coriolis-data.git . @@ -16,6 +17,8 @@ RUN git checkout ${BRANCH} RUN npm install --no-package-lock RUN npm start + +ADD https://api.github.com/repos/edcd/coriolis/git/refs/heads/develop /tmp/version.json # Set up coriolis WORKDIR /src/app/coriolis RUN git clone https://github.com/EDCD/coriolis.git .