abique / hefur

Standalone C++ BitTorrent tracker
MIT License
192 stars 30 forks source link

Dockerfile improvements: add `DEBIAN_FRONTEND=noninteractive`, size and readability #46

Closed pataquets closed 2 years ago

pataquets commented 2 years ago

Pending (needs feedback after merging this in):

abique commented 2 years ago

Thank you very much!

pataquets commented 2 years ago

Happy to help, @abique. Thanks to you for sharing! Do you have any advice on how to speed up repeated builds before I give it a stab?

abique commented 2 years ago

For Docker? I don't know it was a contribution, I'm not strong with Docker.

pataquets commented 2 years ago

I wasn't meaning for Docker, sorry. I was asking for/if the build process can be broken in smaller steps which can be reordered for speeding up repeated builds (for development scenario). Example: 1.- Adding/downloading deps/libs 2.- Building libs 3.- Building main binary and linking That would allow leveraging the Docker build cache, as each step would be a cache bust only if files for that step have changed, so only last step would be re-run most of the time (except lib/deps changes).