Conversation
use alpine minimal base image significantly reduce double data storage in different layers use php-fpm daemon for more efficient and faster php execution image size 437.4MB => 337.8MB, 23% less
|
Since I'm no Docker expert: how does it affect existing Docker-based installations? |
|
it does not affect existing docker installations for running koel, none of the koel files or mount locations changed. people should notice faster response times as the dedicated daemon for php enables much more optimalizations and resource re-use between endpoint calls (think keeping connection sockets open, not having to allocate all memory from scratch, pottential to further tweak it for jit runtime optimalizations) the only thing that's really "lost" is that the base layers is now a minimalistic one instead of a full os. some tools like vi are no longer in the container. but honestly how many people where using it? it's not a beginner friendly editor, and you're supposed to mount the env file into the container so you might as well edit it with your favorite editor from the outside. much easier this smaller base layer is also much more secure because it significantly reduced the attack vectors that could be exploited. |
|
Alright, let's do it! |
use alpine minimal base image significantly reduce double data storage in different layers use php-fpm daemon for more efficient and faster php execution
image size 437.4MB => 337.8MB, 23% less
some improvements to consider for the future