The runtime image is heavy. The single-stage Dockerfile bakes full Go packages, source code, etc..
Theres some optimization ideas we can use like Multi-stage build, separate builds and runtime layers.
I can do this if you thinks its acceptable
I build the original docker image 312MB
with the multi stage layers only with the binary wserver: 18.5MB
The runtime image is heavy. The single-stage Dockerfile bakes full Go packages, source code, etc..
Theres some optimization ideas we can use like Multi-stage build, separate builds and runtime layers.
I can do this if you thinks its acceptable
I build the original docker image 312MB
with the multi stage layers only with the binary
wserver: 18.5MB