From 56c9e39ed1d2a585aa24f8bf2b3e47f525d2594d Mon Sep 17 00:00:00 2001 From: sn0w Date: Thu, 7 Jun 2018 13:51:12 +0200 Subject: [PATCH] Remove the git cache for now --- Dockerfile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9335692..2ad1bd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,20 @@ FROM elixir:1.6-alpine -env MIX_HOME /mix -env MIX_ARCHIVES /mix-archives +ENV MIX_HOME /mix +ENV MIX_ARCHIVES /mix-archives # Prepare system RUN apk add --no-cache --virtual .build alpine-sdk git rsync -# Perform a clone that can be cached -WORKDIR /pleroma -RUN git clone --progress https://git.pleroma.social/pleroma/pleroma.git . - # Bust the cache with a build arg # that is different on every build ARG __BUST_CACHE ENV __BUST_CACHE $__BUST_CACHE -# Update pleroma +# Get the sources ARG PLEROMA_VERSION -RUN \ - git checkout $PLEROMA_VERSION && \ - git pull --rebase --autostash +WORKDIR /pleroma +RUN git clone --progress https://git.pleroma.social/pleroma/pleroma.git . && git checkout $PLEROMA_VERSION # Inject config ADD ./docker-config.exs /docker-config.exs