Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.13-slim

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

RUN usermod -d /home www-data \
Expand Down Expand Up @@ -32,10 +32,12 @@ RUN usermod -d /home www-data \
freecad \
# pspp dependencies
pspp \
# unoconv dependencies
# libreoffice from Debian
libreoffice \
# grab gosu for easy step-down from root
gosu \
# install unoserver for headless UNO
&& pip install --no-cache-dir unoserver \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -61,6 +63,6 @@ ENV GIT_COMMIT=${GIT_COMMIT}
RUN python3 setup.py egg_info
RUN python3 -m pip install .

EXPOSE 7778
EXPOSE 7778 2002

CMD ["gosu", "www-data", "invoke", "server"]
CMD ["bash", "-lc", "unoserver --listener --server=0.0.0.0 --port=2002 & exec gosu www-data invoke server"]