9 months ago
I am learning Go by building a Discord bot and an API service.
I am getting the following error when deploying commands to Discord from the built container:
tls: failed to verify certificate: x509: certificate signed by unknown authority
I know very little about networking. Any pointers?
Repo:
0 Replies
9 months ago
a1f9ffe2-f62a-40c6-93ae-a31972cae7bb
9 months ago
I am using the scratch image. Maybe it is too scratch in this case?
9 months ago
Sidenote: Switching from scratch to golang:1.22-bookworm (same as my dev container), I get another error
9 months ago
This seems to do the trick
COPY --from=build /etc/ssl/certs /etc/ssl/certs
9 months ago
Considering this solved, but feel free to feedback