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 1
1
FROM python:3.13-slim
2
2
3
- # ensure unoconv can locate the uno library
3
+ # ensure uno libs are on PYTHONPATH
4
4
ENV PYTHONPATH=/usr/lib/python3/dist-packages
5
5
6
6
RUN usermod -d /home www-data \
@@ -32,10 +32,12 @@ RUN usermod -d /home www-data \
32
32
freecad \
33
33
# pspp dependencies
34
34
pspp \
35
- # unoconv dependencies
35
+ # libreoffice from Debian
36
36
libreoffice \
37
37
# grab gosu for easy step-down from root
38
38
gosu \
39
+ # install unoserver for headless UNO
40
+ && pip install --no-cache-dir unoserver \
39
41
&& apt-get clean \
40
42
&& apt-get autoremove -y \
41
43
&& rm -rf /var/lib/apt/lists/*
@@ -61,6 +63,6 @@ ENV GIT_COMMIT=${GIT_COMMIT}
61
63
RUN python3 setup.py egg_info
62
64
RUN python3 -m pip install .
63
65
64
- EXPOSE 7778
66
+ EXPOSE 7778 2002
65
67
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