# Docker build failed with Auth0 and golang

**URL:** <https://community.auth0.com/t/docker-build-failed-with-auth0-and-golang/83253>\
**Category:** Get Help\
**Created:** [May 11, 2022, 12:23pm UTC](https://community.auth0.com/t/docker-build-failed-with-auth0-and-golang/83253 "2022-05-11T12:23:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milonmahato67](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/milonmahato67/32/37017_2.png) [@milonmahato67](https://community.auth0.com/u/milonmahato67)\
**Post date:** [May 11, 2022, 12:23pm UTC](https://community.auth0.com/t/docker-build-failed-with-auth0-and-golang/83253/1 "2022-05-11T12:23:40Z")

</div>

Hi, I am new to Auth0. I have tried to dockerize my go app. but getting the following error.

> failed to get new provider: Get “https:///.well-known/openid-configuration”: x509: certificate signed by unknown authority

My code is here to create a NewProvider:

```auto
provider, err := oidc.NewProvider(
		context.Background(),
		"https://"+os.Getenv("AUTH0_DOMAIN")+"/",
	)

```

N.B: Without docker, my app is running nicely.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 11, 2022, 11:59pm UTC](https://community.auth0.com/t/docker-build-failed-with-auth0-and-golang/83253/2 "2022-05-11T23:59:18Z")

</div>

Hi there @milonmahato67 welcome to the community!

> [@milonmahato67](#):
>
> N.B: Without docker, my app is running nicely.

Wonderful! Always good to hear 😄 Could the current issue have something to do with a lack of root certificate? These types of errors are almost always configuration related, especially when working outside of containerization. See:

> **["certificate signed by unknown authority" when verifying with Go library](https://devforum.okta.com/t/certificate-signed-by-unknown-authority-when-verifying-with-go-library/4853/4)**
>
> Ok, problem solved. The problem is due to this being run inside a Kubernetes pod. Our base image is Alpine, which doesn’t include the root certs, apparently. When I installed curl in the pod to test, it installed the ca-certificates package. ...

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 27, 2022, 12:00am UTC](https://community.auth0.com/t/docker-build-failed-with-auth0-and-golang/83253/4 "2022-05-27T00:00:25Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
