July 2019
Intermediate to advanced
502 pages
14h
English
When we built Go microservices for Delinkcious, we used the scratch image as the base and just copied the Go binary. The images are super lightweight, at less than 10 MB. However, the API gateway is almost 500 MB, even when using python:alpine, which is much lighter than the standard Debian-based Python image:
$ docker images | grep g1g1.*0.3 g1g1/delinkcious-user 0.3 07bcc08b1d73 38 hours ago 6.09MB g1g1/delinkcious-social-graph 0.3 0be0e9e55689 38 hours ago 6.37MB g1g1/delinkcious-news 0.3 0ccd600f2190 38 hours ago 8.94MB g1g1/delinkcious-link 0.3 9fcd7aaf9a98 38 hours ago 6.95MB g1g1/delinkcious-api-gateway 0.3 d5778d95219d 38 hours ago 493MB
In addition, the API gateway needs to build ...