Shrink container image - #864
Conversation
|
Really like the idea to have a smaller image. Maybe this should be merged with the switch to rootless image, which is already announced. Even if @peterzandbergen the rootless stuff lives in its own branch at the moment: https://github.com/bbernhard/signal-cli-rest-api/tree/rootless_s6 |
|
Pfuh, that's a tough one. I can see the need for a smaller image size, but having everything in one image greatly improves the debugging capabilities, as one can easily switch between different modes. That's quite handy, as sometimes modes break (e.g due to upstream issues) and users can easily switch to other modes as a workaround until it is fixed. Since a significant portion of users are non -tech-savvy users, having everything in one image helps to guide them through the debugging steps/workarounds they can apply to get it working again. |
|
As always, things are not as simple as I though it would be. I understand @bbernhard 's arguments for the less tech savvy users and having both runtimes available in one image being beneficial for debugging. I suggest to have three image versions:
|
|
I have added the all build target that builds the original image with the native and jre version. |
The current container image size is around 1.3GB. I found this quite large.
With the help of OpenCode I split the Docker image into a jre and native version.
Changes
Result: JRE image size 611MB, native image size 621MB, original size was 1.33GB)
Performed tests
NOTE: I left the AGENTS and analysis file in for your information. Please feel free to remove them.