Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? Go 言語(以下 Golang)v1.16 以降で、"net" モジュールを使ったバイナリを Docker のマルチステージ・ビルドでコンパイルし、どーしても scratch イメージで使いたい。 例えば "net/http" や "net/url" パッケージなどを使って HTTP GET リクエストするものなど。 しかし、静的リンクしないと standard_init_linux.go:228: exec user process caused: no such file or directory エラーが発生するし、静的リンクさせ
