From 3cabc7d2c6c919ba3a610db75645aa5b75c8ecdc Mon Sep 17 00:00:00 2001 From: pmacius Date: Tue, 30 Jul 2024 13:16:09 +0200 Subject: [PATCH] mount whole dir --- tengine/libreoffice/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tengine/libreoffice/Dockerfile b/tengine/libreoffice/Dockerfile index d6cab092..8f0f2982 100644 --- a/tengine/libreoffice/Dockerfile +++ b/tengine/libreoffice/Dockerfile @@ -2,12 +2,13 @@ FROM java_base as libreoffice_base ENV LIBREOFFICE_COMMON_PATH=tengine/libreoffice -RUN --mount=type=bind,source=${LIBREOFFICE_COMMON_PATH}/libreoffice-dist*.gz,target=/tmp/libreoffice-dist.gz \ +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;\ - yum clean all + rm -rf /tmp/libreoffice-dist-linux.gz LibreOffice_*_Linux_x86-64_rpm; &&\ + yum clean all && \ + ln tmp/alfresco-transform-libreoffice*.jar /usr/bin/app.jar FROM libreoffice_base @@ -20,8 +21,6 @@ ARG ALFRESCO_LIBREOFFICE_GROUP_ID ARG ALFRESCO_LIBREOFFICE_USER_NAME ARG ALFRESCO_LIBREOFFICE_USER_ID -ADD ${LIBREOFFICE_COMMON_PATH}/alfresco-transform-libreoffice*.jar /usr/bin/app.jar - RUN groupadd -g ${ALFRESCO_LIBREOFFICE_GROUP_ID} ${ALFRESCO_LIBREOFFICE_GROUP_NAME} && \ useradd -u ${ALFRESCO_LIBREOFFICE_USER_ID} -g ${ALFRESCO_LIBREOFFICE_GROUP_NAME} ${ALFRESCO_LIBREOFFICE_USER_NAME} && \ chgrp ${ALFRESCO_LIBREOFFICE_GROUP_NAME} /usr/bin/app.jar