Onboard tutorial failed because of git

I’ve got this issue when trying the following command: docker build -t imygy/cheers2019 .

cd .; git clone https://github.com/pdevine/go-asciisprite /go/src/github.com/pdevine/go-asciisprite
Cloning into '/go/src/github.com/pdevine/go-asciisprite'...
fatal: unable to access 'https://github.com/pdevine/go-asciisprite/': Failed to connect to 127.0.0.1 port 1080: Connection refused
package github.com/pdevine/go-asciisprite: exit status 128

I’ve run a proxy on localhost:1080 and git clone just works fine on the local machine, how should I solve this?