Hacker News new | ask | show | jobs
by skj 4113 days 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/vendori...