Skip to content

remove .git folder from image build

Jelto requested to merge clean-git-folder into master

This change removes the .git folder from the image build to make sure it's not present in the final image. A builder is used which removes the folder in a dedicated build variant. Blubber translates this to a multi-stage build and the folder should not be present in any layer the final image (I verified that with dive).

Also this change fixes the apache config to properly block .git on the webserver level as well.

Bug: T382230

Merge request reports