Closed orlandine closed 5 years ago
Btw, docker build should be run with --squash option.
A couple observations: The Docker documentation still listed --squash as an experimental feature. As such I don't think it is appropriate to refer to yet as a standard practice. Someone familiar with these features would already know about squash and wouldn't need it in the official documentation. Plus, you have to specifically enable experimental features. That's fine for knowledgable people.
I have experimental turned on and using squash resulted in no improvement in storage use. actian/vector5.0 squash d4b70f67b3f6 2 hours ago 1.94GB actian/vector5.0 community 11932dd51fa9 3 hours ago 1.94GB
Agree on the experimental state of --squash. Background:
vector:community 1.99GB <= default vector:multistage 2.9GB <= not good :) vector:squash 1.55GB <= squash makes sense with multistage build
Docker still has squash marked as experimental. As a result we will leave it to the developer to decide if squash is necessary.
Uses multistage build to discard installation artifacts prior to finalization.