pre-install git-annex in the gitlab docker images
Having git-annex preinstalled would make the install/upgrade process more straightforward, and provides control over the version of git-annex.
The increase of size would probably be manageable, if you strip the binaries and keep the essential files.