I modified the source code of web-apps. How do I compile installer for linux with .deb extension?

Do you want to: Ask a how-to question
Document Server version: v8.0.1
Type of installation of the Document Server: deb/rpm
OS: Ubuntu Server 20.04.6 LTS

Additional information:
Hello I want to modify the source code of webapps for personal use and after I complete the modification I compile the code following the steps:


With the previous steps I can compile and run the code, however I want to deploy it in docker but I have to generate a linux installation package with a .deb extension, so I would like to know if there is a manual, script or toturial to be able to create the installable package and be able to do it deploy with docker.

Any idea or suggestion would be very helpful.


Hello @carlosherz192
I’ll try to check out this scenario and will update this thread as soon as possible.

There’re two possible ways:
A. You can try to rebuild the original deb package. Here’s the project: document-server-package/deb at master · ONLYOFFICE/document-server-package · GitHub
And use it for docker rebuild.
B. You can use our official image as a base image and override web-apps using COPY directive.

git clone https://github.com/ONLYOFFICE/document-server-package.git

peer directory build_tools

cd document-server-package

It seems you are on the right track with this repository.
P.S. Please bear in mind, that we do not provide support for Document server with changed source-code. So, we will not be able to troubleshoot such installation if you face issues.

1 Like