Using the Go HTTP client from a alpine docker image will result in this error – x509: failed to load system roots and no roots provided
Solution: alpine is a minimal image, hence CA certificates are required. You add that in the Dockerfile as per below example
FROM alpine
RUN apk add --no-cache ca-certificates
COPY my-app .