Skip to content

Libreoffice v24 Upgrade #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
26 changes: 21 additions & 5 deletions Dockerfile.node20-x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,32 @@ RUN dnf install -y xorg-x11-fonts-* libSM.x86_64 libXinerama-devel google-noto-s

RUN cp /lib64/libssl.so.3 /lib64/libssl3.so

RUN mkdir ~/libre && cd ~/libre && curl -s -L https://download.documentfoundation.org/libreoffice/stable/7.6.7/rpm/x86_64/LibreOffice_7.6.7_Linux_x86-64_rpm.tar.gz | tar xvz
RUN mkdir ~/libre && cd ~/libre && curl -s -L https://downloadarchive.documentfoundation.org/libreoffice/old/24.8.3.2/rpm/x86_64/LibreOffice_24.8.3.2_Linux_x86-64_rpm.tar.gz | tar xvz

RUN cd ~/libre/LibreOffice_7.6.7.2_Linux_x86-64_rpm/RPMS/ && rpm -Uvh *.rpm && rm -fr ~/libre
RUN cd ~/libre/LibreOffice*/RPMS/ && rpm -Uvh *.rpm && rm -fr ~/libre

# Install Amazon Corretto JRE
RUN curl -L -o corretto.tar.gz https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.tar.gz && \
mkdir /usr/local/corretto && \
tar -zxf corretto.tar.gz -C /usr/local/corretto --strip-components=1 && \
rm corretto.tar.gz

# Set JAVA_HOME and update PATH
ENV JAVA_HOME=/usr/local/corretto
ENV PATH="${JAVA_HOME}/bin:${PATH}"


# Verify the installation (optional)
RUN java -version

RUN microdnf install -y libxslt \
&& microdnf clean all

ENV HOME=/tmp

# Trigger dummy run to generate bootstrap files to improve cold start performance
RUN touch /tmp/test.txt \
&& cd /tmp \
&& libreoffice7.6 --headless --invisible --nodefault --view \
&& libreoffice24.8 --headless --invisible --nodefault --view \
--nolockcheck --nologo --norestore --convert-to pdf \
--outdir /tmp /tmp/test.txt \
&& rm /tmp/test.*
--outdir /tmp /tmp/test.txt