Re:A little Golang way
by mwcampbell on Wednesday August 05, 2015 @08:00PM
(#10013778)
I assume you didn't use the normal Dockerfile-based build system to build your super-small Docker images for the Go-based services. So how did you do it?
[ Parent
| on HN ]
Re:A little Golang way
by vonsnowman on Thursday August 06, 2015 @03:16AM
(#10015013)
We're not doing anything too fancy. Basically, we spawn a container to build a statically linked binary and do a regular Dockerfile-based build inside that container. The result is an image which contains only a single binary (any maybe some static assets like config files or images).
We're planning to open source our build script shortly.