3 ms·
I find part of the fun of dockerising small apps is in trying to get the image as small as possible with as few files in it as I can. This one looks like it sti
by mike-cardwell 1y ago
I find part of the fun of dockerising small apps is in trying to get the image as small as possible with as few files in it as I can. This one looks like it still contains a lot of stuff that's not needed.
For example, my exim image https://hub.docker.com/r/grepular/exim4 https://hub.docker.com/r/grepular/exim4 is built like this: https://gitlab.com/grepular/docker-exim4/-/blob/main/Dockerfile?ref_type=heads https://gitlab.com/grepular/docker-exim4/-/blob/main/Dockerf... - The final image only contains the necessary executables, shared lib files, CA certs, timezone files, a few other bits and nothing else.
- firesteelrain 1y agoWonder if you could go smaller if you used debian:stable-slim and used exim-daemon-light. Also dropping SUID if you don’t absolutely need it.
- mike-cardwell 1y agoI could go smaller using the light package, but I wanted a full featured Exim in the container. And I'm using the testing image so it keeps up with the latest version of Exim.
- ajsnigrutin 1y agoby just apt-get installig irssi, those 'few files' are even shared with other applications, making the whole thing even smaller and without the docker overhead.
- wink 1y agoIt's a fun exercise but I don't see it as useful for most things I run. xxx/znc 25.4MB xxx/oidentd 10.6MB this is based on alpine and at most I could save 30MB total. Not worth the effort for me.
- katzenversteher 1y agoWhat's the intention behind deletion of the Moscow timezone?