You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will create larger binaries. However, the Docker base image can be swapped out for a distroless image such as scratch, which will make the resulting Docker image smaller.
One aspect to consider is whether the CGO versions of dependencies are used, as this can effect how the statically linked binaries are built.
The text was updated successfully, but these errors were encountered:
In case you're interested, here's an excellent, recent article about building Go binaries statically. It includes useful info about CGO and cross-compilation, too.
This will create larger binaries. However, the Docker base image can be swapped out for a distroless image such as scratch, which will make the resulting Docker image smaller.
One aspect to consider is whether the CGO versions of dependencies are used, as this can effect how the statically linked binaries are built.
The text was updated successfully, but these errors were encountered: