Your Droplet (or docker container) is having connectivity issues to github
fatal: unable to access ‘GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. · GitHub’: Could not resolve host: github.com
Could you verify if github is accessible?