2 ms·
True. Luckily, most Go binaries can be upx'd ( https://upx.github.io/ https://upx.github.io/ ) for a fraction of their original size. Just put it into your Dock
by yetanotherme 7y ago
True. Luckily, most Go binaries can be upx'd ( https://upx.github.io/ https://upx.github.io/ ) for a fraction of their original size. Just put it into your Dockerfile as a part of the build process.
- penagwin 7y agoThis works and helps with storage/transit. Word of warning though that many AV like to flag UPX'd executables (only important if it's not an internal tool), and it'll take even longer for it to start, and will use more memory. My understanding is it essentially does standard compression on the executable and appends the decompression part on the front of it.
- xyproto 7y agoWith UPX the entire docker image with Algernon takes only 9MB.