From 0d0af3a5058d5a0eab8961948b026ef6d7c9dfff Mon Sep 17 00:00:00 2001 From: Angedestenebres Date: Mon, 19 Oct 2020 18:52:31 +0000 Subject: [PATCH] Add libreoffice export --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 45601c87..d4a9671a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,10 @@ ENV NODE_ENV=production # # Running as non-root enables running this image in platforms like OpenShift # that do not allow images running as root. -RUN useradd --uid 5001 --create-home etherpad +RUN useradd --uid 5001 --create-home etherpad && \ + mkdir -p /usr/share/man/man1 + +RUN apt-get update && apt-get install -y libreoffice RUN mkdir /opt/etherpad-lite && chown etherpad:0 /opt/etherpad-lite @@ -50,5 +53,6 @@ COPY --chown=etherpad:0 ./settings.json.docker /opt/etherpad-lite/settings.json # Fix permissions for root group RUN chmod -R g=u . +ENV SOFFICE=/usr/bin/soffice EXPOSE 9001 CMD ["node", "node_modules/ep_etherpad-lite/node/server.js"] -- GitLab