X9Developers / XSN

XSN - Stakenet, the first cryptocurrency with Trustless Proof of Stake
https://stakenet.io
MIT License
93 stars 49 forks source link

chore(Dockerfile): update Dockerfile to reduze image size #149

Closed peponi closed 4 years ago

peponi commented 4 years ago

and hopfully traffic & copy time on some the CI (^_^)

INFO: safed 923MB of the images size

REPOSITORY TAG IMAGE ID CREATED SIZE
xsn own c8423e5bf760 6 hours ago 757MB
xsn latest 10e6227772e4 32 hours ago 1.86GB

INFO: this version based on "debian:stretch-slim"

have tried to build a version on "debian:buster-slim" to reduze the security issues amount

debian image-size trivy security low mediam high
strech-slim 757MB 143 46 24
buseer-slim 1.13GB 86 22 1

but the buster-slim version won't run

$ docker run -it --rm -p 62583:62583 xsn:own-buster
/usr/bin/xsnd: error while loading shared libraries: libboost_system.so.1.67.0: cannot open shared object file: No such file or directory