Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Jul 30, 2024
1 parent 55c08f2 commit 38dac47
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tengine/libreoffice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ ENV LIBREOFFICE_COMMON_PATH=tengine/libreoffice

RUN --mount=type=bind,source=${LIBREOFFICE_COMMON_PATH},target=/tmp \
yum install -y cairo cups-libs libSM libGLU && \
tar xzf /tmp/libreoffice-dist-linux.gz && \
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
rm -rf /tmp/libreoffice-dist-linux.gz LibreOffice_*_Linux_x86-64_rpm && \
if [ -f /tmp/libreoffice-dist-linux.gz ]; then \
tar xzf /tmp/libreoffice-dist-linux.gz -C /tmp; \
else \
echo "File /tmp/libreoffice-dist-linux.gz not found"; \
exit 1; \
fi && \
if ls /tmp/LibreOffice*/RPMS/*.rpm 1> /dev/null 2>&1; then \
yum localinstall -y /tmp/LibreOffice*/RPMS/*.rpm; \
else \
echo "LibreOffice RPM files not found"; \
exit 1; \
fi && \
rm -rf /tmp/libreoffice-dist-linux.gz /tmp/LibreOffice_*_Linux_x86-64_rpm && \
yum clean all

FROM libreoffice_base
Expand Down

0 comments on commit 38dac47

Please sign in to comment.