Make cachebust parameter available as env var

This allows using an already built image that was built with cachebust
set without rebuilding osu.
This commit is contained in:
Simon Bruder 2020-09-13 15:02:53 +02:00
parent 5905ebd16f
commit 9b29cff93e
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -8,6 +8,7 @@ RUN apt-get update \
COPY disable-deployed-build.patch /tmp/
ARG CACHEBUST=1
ENV CACHEBUST=$CACHEBUST
RUN OSU_VERSION=$(curl -s https://api.github.com/repos/ppy/osu/releases/latest | jq -r .tag_name) \
&& git clone --depth=1 --single-branch -b ${OSU_VERSION} https://github.com/ppy/osu \