Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Usually I recomend agains alpine images. They use muslc, that can be a real troublemaker at times. If you don't need any tooling, then distroless image is great. Otherwise debian-slim ticks everything for me. As usuall your milage may vary and you should choose solutions that suits you!
I regularly build "binary only" container images. Here's one that happens to build a tool I run on a raspberry pi: https://github.com/jasonmf/solar/tree/release/cmd/solar
Shameless plug for ko: https://github.com/google/ko
There are just enough differences between musl and glibc to be confusing, e.g. https://github.com/libuv/libuv/issues/2225
I keep this as a demonstration of another approach: https://github.com/thockin/go-build-template