Skip to content

Commit

Permalink
export PKGARCH var for later commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 4, 2024
1 parent f955945 commit 82f9991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tengine/imagemagick/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ ARG ALFRESCO_IMAGEMAGICK_GROUP_ID
ARG ALFRESCO_IMAGEMAGICK_USER_NAME
ARG ALFRESCO_IMAGEMAGICK_USER_ID
ARG DISTRIB_MAJOR
ARG TARGETPLATFORM
ARG TARGETARCH

ADD alfresco-transform-imagemagick*.jar /opt/app.jar
ADD imagemagick-distribution*-el${DISTRIB_MAJOR}*.rpm /tmp/
ADD libs/imagemagick-distribution*-libs-el${DISTRIB_MAJOR}*.rpm /tmp/

RUN [ "$TARGETARCH" == 'arm64' ] && PKGARCH='-aarch64'; \
RUN [ "$TARGETARCH" == 'arm64' ] && export PKGARCH='-aarch64'; \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${DISTRIB_MAJOR}.noarch.rpm; \
yum localinstall -y /tmp/imagemagick-distribution-*-el${DISTRIB_MAJOR}${PKGARCH}.rpm /tmp/imagemagick-distribution-*-libs-el${DISTRIB_MAJOR}${PKG_ARCH}.rpm; \
yum clean all && rm -rf /var/cache/yum; \
Expand Down

0 comments on commit 82f9991

Please sign in to comment.