docToolchain / docker-image

MIT License
3 stars 18 forks source link

Further reduce the image size #7

Closed dbroeglin closed 4 years ago

dbroeglin commented 5 years ago

A way of reducing the image size a bit more would be to delete the .git repositories after `docToolchain has been cloned. You could gain about 27Mb:

bash-4.4# du -ks $(find /docToolchain -name .git)
4   /docToolchain/resources/reveal.js/.git
4   /docToolchain/resources/asciidoctor-reveal.js/.git
26912   /docToolchain/.git
rdmueller commented 5 years ago

wow. great tip! will you do a PR?

ewoks commented 4 years ago

Hi everyone,

as I saw issue was stale for some time, I prepared PR for it. In addition I tried to speed up cloning of the repository.

Let me know if this fits as proposed in issue description

ewoks commented 4 years ago

We can close this issue @rdmueller :+1: