I had the same issue. Looking at the docker run commands on gitlab I noticed the container uses the variable UMASK_SET instead of UMASK to change set the permissions for files/folders.
Changing the UMASK variable from UMASK to UMASK_SET fixed the permission issue for me.