Remove the git cache for now

This commit is contained in:
sn0w 2018-06-07 13:51:12 +02:00
parent f991dc0329
commit 56c9e39ed1

View File

@ -1,25 +1,20 @@
FROM elixir:1.6-alpine FROM elixir:1.6-alpine
env MIX_HOME /mix ENV MIX_HOME /mix
env MIX_ARCHIVES /mix-archives ENV MIX_ARCHIVES /mix-archives
# Prepare system # Prepare system
RUN apk add --no-cache --virtual .build alpine-sdk git rsync 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 # Bust the cache with a build arg
# that is different on every build # that is different on every build
ARG __BUST_CACHE ARG __BUST_CACHE
ENV __BUST_CACHE $__BUST_CACHE ENV __BUST_CACHE $__BUST_CACHE
# Update pleroma # Get the sources
ARG PLEROMA_VERSION ARG PLEROMA_VERSION
RUN \ WORKDIR /pleroma
git checkout $PLEROMA_VERSION && \ RUN git clone --progress https://git.pleroma.social/pleroma/pleroma.git . && git checkout $PLEROMA_VERSION
git pull --rebase --autostash
# Inject config # Inject config
ADD ./docker-config.exs /docker-config.exs ADD ./docker-config.exs /docker-config.exs