Detached headless libreoffice

Hello,
i would like to run multiple LibreOffice in a container and i want to make it in Dockerfile. I use commands belov to run applications however it is not possible to run them. Because soffice --headless command bloks the terminal and i can not go further.
soffice --headless --norestore -env:UserInstallation=file:///tmp/LibO_Process2002 “–accept=socket,host=localhost,port=2002;urp;”
soffice --headless --norestore -env:UserInstallation=file:///tmp/LibO_Process2003 “–accept=socket,host=localhost,port=2003;urp;”
soffice --headless --norestore -env:UserInstallation=file:///tmp/LibO_Process2004 “–accept=socket,host=localhost,port=2004;urp;”

Is there anyway to use this commands detached (like docker -d)?
Thanks in advance
Cihat