3 ms·
Are you doing a COPY to get it all in? Another thing you can try is to use a builder image, where you mount your source in as a volume (ie don't copy), and that
by skj 12y ago
Are you doing a COPY to get it all in? Another thing you can try is to use a builder image, where you mount your source in as a volume (ie don't copy), and that build image makes a new Dockerfile+binary that you can build into a much smaller image for deploying.
I wrote a bit about this process here: http://gowithconfidence.tumblr.com/post/112715890281/vendoring-with-docker http://gowithconfidence.tumblr.com/post/112715890281/vendori...