Skip to content

Commit

Permalink
Merge pull request #830 from Sieboldianus/reduce-docker-size
Browse files Browse the repository at this point in the history
Use 'git clone --depth 1' to reduce docker image size from 1GB to 500MB
  • Loading branch information
jaedb authored May 20, 2022
2 parents 8bf47b8 + 235e0bb commit 9bd5ba0
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 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 \
Expand Down

0 comments on commit 9bd5ba0

Please sign in to comment.