Skip to content

Commit 89a68da

Browse files
committed
ENG-8356 | MFR Update unconv to unoserver
1 parent 7ca4004 commit 89a68da

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.13-slim
22

3-
# ensure unoconv can locate the uno library
3+
# ensure uno libs are on PYTHONPATH
44
ENV PYTHONPATH=/usr/lib/python3/dist-packages
55

66
RUN 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}
6163
RUN python3 setup.py egg_info
6264
RUN 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"]

0 commit comments

Comments
 (0)