Closed pawohl closed 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.
I think a fork is better suited. Merge request has issues. Thanks for your work!
Hello,
Thanks for all your comments. I will take a look in your fork, and eventually merge back any improvements.
Cheers.
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 )
ETHERPAD_DB_PORT
.