To support multi platform / non docker deployments joplin/Dockerfile.server at dev · laurent22/joplin · GitHub should not include the joplin server build itself. Instead a separate (CI) job should build the dist dir only and then trigger dependent jobs like building the docker image or other platform artefacts like a debian package. If the whole build is done in one single dockerfile we would need to understand any modification and manually do that separation for any other platform.
We would not need to care (read, understand, adapt) about any change in the joplin server build process if this is handled in a separate task/script (covered in a CI build) as discussed in https://github.com/hi-ko/joplin-server-ubuntu-install/issues/7
Second this request.