User's home directory does not exist
The golanguser
user has its home directory defined as /home/golanguser
, but that folder doesn't exist in the current docker image. Therefore, when go build
attempts to create the build cache under /home/golanguser/.cache
it fails and cannot build Go code.