The instructions for adding new plugins to the document server are not really practical for docker installations, it seems as you will have to reinstall the plugins each time the container is re-created. Mounting /var/www/onlyoffice/documentserver/sdkjs-plugins as a bind mount isn’t feasible, because the existing directory contents will be obscured from within the container.
For now, what I am trying is to install git within the container as it is just a single plugin I want to install for now and this is basically for testing. But in the long run, this doesn’t look like a feasible solution, as docker containers are not designed to be persistent, instead, that’s what you have named volumes or bind mounts for. What would be the canonical way of adding new plugins?