The size of our docker image has doubled in 9.1
Problem:
For the EE package, size has jumped from 396 MB to 725 MB https://hub.docker.com/r/gitlab/gitlab-ee/tags/
This appears to be because we now have our deb file sitting around in the layers as a result of !1441 (merged)
Why:
This is because each command in the Dockerfile results in a new layer. Our copy command that brings in the deb file is on a different layer than the rm *.deb
command that we execute during our RUN command. The latest layer does not have the file, but the layers are iterative, and all are downloaded when pulling the image. Meaning you cannot effectively cleanup a file that was created in a different layer.