Error building WebAPI docker image from source. Looks like there’s an issue for the pl.project13.maven dependency finding HEAD from .git?
Error:
#9 23.82 [ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:4.0.0:revision (default) on project WebAPI: Could not complete Mojo execution...: Error: Could not get HEAD Ref, are you sure you have set the dotGitDirectory property of this plugin to a valid path? -> [Help 1]
Code to reproduce
git clone https://github.com/OHDSI/WebAPI.git --branch v2.13.0 --depth 1
cd WebAPI
mkdir WebAPIConfig
copy sample_settings.xml WebAPIConfig/settings.xml
docker build --build-arg "MAVEN_PROFILE=webapi-postgresql" -t webapi:local .