Closed syuan100 closed 3 years ago
I believe gcc and go are not necessary in the final package, since both are for compiling the binaries and aren't needed at runtime.
I've cut it down to about 245MB, will submit PR shortly.
Will take a look now, thanks for reviewing!
If gcc can be pulled out of the runtime Docker image build, this would save another 150-200MB or so. This is the last of the "low hanging fruit" and diminishing value in making the image smalelr.
I haven't tried, I was was mostly making sure that everything would compile, but yeah since gcc is a build tool I might try pulling it out to see how it works.
I've been able to get the docker image down to about 600MB for now using the erlang alpine image. Docker is not my strong suit, so would appreciate if someone could take look and further optimize how it's current constructed.