Set permissions of files copied into the container
Set permissions of files copied into the container

As gitlab-ci checks out with mode 666 we need to set permissions of the
files we copied into the container to a secure value.

Fixes #5956

gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab