-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (23 loc) · 917 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:22.04
LABEL authors="Anton Georgiev"
ENV LIBREOFFICE_VERSION=24.8.4
RUN apt-get update && apt-get install -y \
default-jre-headless \
libcairo2 \
libx11-xcb1 \
libxinerama1 \
libxslt1.1 \
libxt6 \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# downloading, extracting, installing and cleanup in one docker layer to minimize size
RUN wget https://download.documentfoundation.org/libreoffice/stable/${LIBREOFFICE_VERSION}/deb/x86_64/LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb.tar.gz && \
mkdir LibreOffice && \
tar xzf LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb.tar.gz -C LibreOffice --strip-components 1 && \
rm LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb.tar.gz && \
cd LibreOffice/DEBS && \
dpkg -i *.deb && \
rm -rf *.deb
RUN ["/bin/bash", "-c", "ln -s /usr/local/bin/libreoffice* /usr/bin/soffice"]
RUN /usr/bin/soffice --version