Your error is the location plugin line
- git clone https://github.com/paviliondev/discourse-locations
Remove the “.git” as my line above.
https://github.com/paviliondev/discourse-locations
No .git on plugins github link. The first line for docker has a “.git”. plugins are just link addresses.
If you scroll up in the log you should see some kind of error related to the locations plugin line. The error you posted I get that one but it does not affect rebuilding