File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11FROM python:3.13-slim
22
3- # ensure unoconv can locate the uno library
3+ # ensure uno libs are on PYTHONPATH
44ENV PYTHONPATH=/usr/lib/python3/dist-packages
55
66RUN usermod -d /home www-data \
@@ -32,10 +32,12 @@ RUN usermod -d /home www-data \
3232 freecad \
3333 # pspp dependencies
3434 pspp \
35- # unoconv dependencies
35+ # libreoffice from Debian
3636 libreoffice \
3737 # grab gosu for easy step-down from root
3838 gosu \
39+ # install unoserver for headless UNO
40+ && pip install --no-cache-dir unoserver \
3941 && apt-get clean \
4042 && apt-get autoremove -y \
4143 && rm -rf /var/lib/apt/lists/*
@@ -61,6 +63,6 @@ ENV GIT_COMMIT=${GIT_COMMIT}
6163RUN python3 setup.py egg_info
6264RUN python3 -m pip install .
6365
64- EXPOSE 7778
66+ EXPOSE 7778 2002
6567
66- CMD ["gosu " , "www-data " , "invoke" , " server" ]
68+ CMD ["bash " , "-lc " , "unoserver --listener --server=0.0.0.0 --port=2002 & exec gosu www-data invoke server" ]
You can’t perform that action at this time.
0 commit comments