Docker and Go 1.11 modules

Alex Tan
1 min readAug 29, 2018

--

This is a simple guide on how to dockerize a golang binary in go1.11 with the vendor directories. By default go command will completely ignore vendor directories. But enabling the build using the vendor directory would speed up build a lot, especially when running inside Docker, as you do not need to fetch the dependencies anymore.

View the guide here:

Another guide for gRPC:

--

--

No responses yet