Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
#DB Connection required for payload build
3 messages · Page 1 of 1 (latest)
Ok, brushing up on docker I found that to build the docker image requires defining the network where the local database is located so that it can access it during the build process. Using host will give the build process regular access to the local network environment eg.
docker build --network=host -t website-name .
I will mark this as solved and start a github discussion regarding whether the build process can run without touching a database.