Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save umair-khokhar/11516a692a21d3de05751f50056bf4dd to your computer and use it in GitHub Desktop.

Select an option

Save umair-khokhar/11516a692a21d3de05751f50056bf4dd to your computer and use it in GitHub Desktop.
Instruction for LibreOffice dependency installation
1. cd /usr/local
2. wget http://download.documentfoundation.org/libreoffice/stable/5.0.0/rpm/x86_64/LibreOffice_5.0.0_Linux_x86-64_rpm.tar.gz
3. cd LibreOffice_5.0.0_Linux_x86-64_rpm
4. yum localinstall *.rpm --skip-broken
5. yum install cairo
6. yum install cups
7. Update path by updating ~/.bashrc file.
export PATH="$PATH:/opt/libreoffice5.0/program"
8. sudo yum install libXinerama.x86_64 cups-libs dbus-glib
9. You are all set!
@MorlaxAR
Copy link
Copy Markdown

MorlaxAR commented Mar 4, 2026

Updated Dockerfile for Node 24, Java 25 and LibreOffice 26.2.1. Tested a few doc conversions and it works fine with no warnings:

FROM public.ecr.aws/lambda/nodejs:24

RUN dnf install -y \
      libXinerama \
      nss \
      dbus-libs \
      cups-libs \
      libX11-xcb \
      java-25-amazon-corretto-headless \
      wget \
      tar \
      gzip \
      xz \
    && dnf clean all \
    && rm -rf /var/cache/dnf

RUN cd /usr/local \
    && wget -q https://download.documentfoundation.org/libreoffice/stable/26.2.1/rpm/x86_64/LibreOffice_26.2.1_Linux_x86-64_rpm.tar.gz \
    && tar -xf LibreOffice_26.2.1_Linux_x86-64_rpm.tar.gz \
    && rm -f LibreOffice_26.2.1_Linux_x86-64_rpm.tar.gz \
    && rpm -Uvh LibreOffice_26.2.1*/RPMS/*.rpm \
    && rm -rf LibreOffice_26.2.1*

ENV PATH="${PATH}:/opt/libreoffice26.2/program" \
    PYTHONHOME="/opt/libreoffice26.2/program/python-core-3.12.12"

Proper binary name is soffice in this version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment