remove .git folder from image build

This change removes the .git folder from the image build to make sure it's not present in the final image. .dockerignore is used to exclude the .git folder.

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

Bug: T382230

Edited by Jelto

Merge request reports

Loading