Original post

Couple of points: if you test in your build docker container (good practice) the race flag won’t work on alpine out of the box. Also, if you’re going to be making https calls you should copy your ca certs into the scratch container, see https://medium.com/@chemidy/create-the-smallest-and-secured-golang-docker-image-based-on-scratch-4752223b7324