-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile.node16-x86_64
More file actions
34 lines (28 loc) · 997 Bytes
/
Dockerfile.node16-x86_64
File metadata and controls
34 lines (28 loc) · 997 Bytes
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
28
29
30
31
32
33
FROM public.ecr.aws/lambda/nodejs:16-x86_64
# binutils is needed for "strip" command
RUN yum install \
tar \
gzip \
libdbusmenu.x86_64 \
libdbusmenu-gtk2.x86_64 \
libSM.x86_64 \
xorg-x11-fonts-* \
google-noto-sans-cjk-fonts.noarch \
binutils.x86_64 \
-y && \
yum clean all
RUN set -xo pipefail && \
curl "https://ftp.halifax.rwth-aachen.de/tdf/libreoffice/stable/7.4.3/rpm/x86_64/LibreOffice_7.4.3_Linux_x86-64_rpm.tar.gz" | tar -xz
RUN cd LibreOffice_7.4.3.2_Linux_x86-64_rpm/RPMS && \
yum install *.rpm -y && \
rm -rf /var/task/LibreOffice_7.4.0* && \
cd /opt/libreoffice7.4/ && \
strip ./**/* || true
ENV HOME=/tmp
# Trigger dummy run to generate bootstrap files to improve cold start performance
RUN touch /tmp/test.txt \
&& cd /tmp \
&& libreoffice7.4 --headless --invisible --nodefault --view \
--nolockcheck --nologo --norestore --convert-to pdf \
--outdir /tmp /tmp/test.txt \
&& rm /tmp/test.*