Skip to content

Commit

Permalink
mount whole dir
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Jul 30, 2024
1 parent c81bef7 commit 3cabc7d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tengine/libreoffice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 3cabc7d

Please sign in to comment.