Funny Gopher, Cloud Architect, CTO
Yes with pleasure, this is so cool :)
Of course you can build the binary without step 1 and copy it to docker.
The added value of multi-stage build is for CI/CD, you have a reproducible build in any environment.
Thks Patrik, i will update soon the article with digest check.
Thks ! Yes of course this options are no longer required with latest go version, but go 1.9 is still used. I will update my article :)
I just added a working example on github : https://github.com/chemidy/smallest-secured-golang-docker-image
Thks toby :) Fixed
you can remove dangling image with : docker image prune
Hi Glenn, You can send me a msg on Twitter : https://twitter.com/chemidy?lang=fr
I updated article with git install
# Install git
RUN apk update && apk add git
Yes I update with git install