Merge pull request #830 from Sieboldianus/reduce-docker-size

Use 'git clone --depth 1' to reduce docker image size from 1GB to 500MB
This commit is contained in:
James Barnsley
2022-05-20 19:38:12 +12:00
committed by GitHub

View File

@ -40,7 +40,7 @@ RUN mkdir -p /usr/local/share/keyrings \
# installing using pip.
# 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 \
RUN git clone --depth 1 -b master https://github.com/jaedb/Iris.git /iris \
&& cd /iris \
&& python3 setup.py develop \
&& mkdir -p /var/lib/mopidy/.config \