Skip to content

Commit

Permalink
Use 'git clone --depth 1' to reduce docker image size from 1GB to 500MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Apr 17, 2022
1 parent d15fcc7 commit 235e0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN wget -q -O - https://apt.mopidy.com/mopidy.gpg \
# 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 \
Expand Down

0 comments on commit 235e0bb

Please sign in to comment.