tvelocity / dockerfiles

My collection of Dockerfiles for various services.
15 stars 39 forks source link

Etherpad-Lite: Support docker-compose, fix JSON #19

Closed pawohl closed 7 years ago

pawohl commented 7 years ago
pawohl commented 7 years ago

Btw, what is the benefit of removing the apt source lists with rm -r /var/lib/apt/lists/*?

From what I understand, the image isn't getting substantially smaller because the files will be kept in the layers below.

pawohl commented 7 years ago

I think a fork is better suited. Merge request has issues. Thanks for your work!

tvelocity commented 7 years ago

Hello,

Thanks for all your comments. I will take a look in your fork, and eventually merge back any improvements.

Cheers.

tvelocity commented 7 years ago

Btw, regarding /var/lib/apt/lists/*, the removal is done under the same RUN directive that populates these files. Under tis scenario, the files will not kept in any of the layers (it is one layer per Dockerfile command).

This is standard practice when writing Dockerfiles, even the official images use this (the official Wordpress image, for example https://github.com/docker-library/wordpress/blob/master/Dockerfile-debian.template )