by sofaofthedamned · 8y ago · 0 comments
mike@ung:~$ sudo docker image ls|grep golang
golang 1.10 6b369f7eed80 3 days ago 794MB
mike@ung:~$
794MB...Should probably base it off an Alpine image instead. Would make it many times smaller.
[edit] In fact, there is a "golang:1.10-alpine" Docker image:
mike@ung:~$ sudo docker image ls|grep alpine
golang 1.10-alpine 05fe62871090 4 days ago 376MB
mike@ung:~$
Hmm. even that one is bigger than I expected. FROM scratch
ADD main /
CMD ["/main"]https://github.com/jaegertracing/jaeger/blob/master/cmd/quer...
I do that on CI as well, since building dependencies often takes longer than just downloading a full VM.