Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enable cgo and use google buildbase
cgo needs to be enabled to link against boringcrypto, so we add that here. In addition, we use the google-go.pkg.dev/golang image as the Go buildbase to ensure build-time requirements, like boringcrypto, are enabled. We also use gke.gcr.io/gke-distroless/libc as our runtime image. We add the "cryp/tls/fipsonly" import to ensure boringcrypto is linking properly at build time. We guard this with a build flag "boring". The build will fail otherwise. Finally, we move away from promu in our Dockerfile as it was not obvious how to pass a go build tag through just in the Docker case. We also removed the "USER nobody" as there were permissions errors with running the alertmanager to store its log files. Signed-off-by: Daniel Clark <danielclark@google.com>
- Loading branch information