mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
27 lines
1.6 KiB
Docker
27 lines
1.6 KiB
Docker
# Image provides a container in which to run ImageMagick transformations for Alfresco Enterprise Content Services.
|
|
|
|
# The container is only intended to be used with the Alfresco Enterprise editon which is covered by https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use.
|
|
# ImageMagick is from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt.
|
|
|
|
FROM quay.io/alfresco/alfresco-base-java:9
|
|
|
|
ENV IMAGEMAGICK_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/imagemagick/imagemagick-distribution/7.0.7-27/imagemagick-distribution-7.0.7-27-linux.rpm
|
|
ENV IMAGEMAGICK_LIB_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/imagemagick/imagemagick-distribution/7.0.7-27/imagemagick-distribution-7.0.7-27-libs-linux.rpm
|
|
ENV IMAGEMAGICK_LICENSE_FILE=https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/ImageMagick-license.txt
|
|
|
|
COPY target/alfresco-docker-imagemagick-${env.project_version}.jar /usr/bin
|
|
|
|
RUN ln /usr/bin/alfresco-docker-imagemagick-${env.project_version}.jar /usr/bin/alfresco-docker-imagemagick.jar && \
|
|
yum install -y wget && \
|
|
wget $IMAGEMAGICK_RPM_URL && \
|
|
wget $IMAGEMAGICK_LIB_RPM_URL && \
|
|
wget $IMAGEMAGICK_LICENSE_FILE && \
|
|
yum localinstall -y imagemagick-distribution-*-linux.rpm && \
|
|
rm -f imagemagick-distribution-*-linux.rpm && \
|
|
yum remove -y wget && \
|
|
yum clean all
|
|
|
|
EXPOSE 8090
|
|
|
|
ENTRYPOINT java -jar /usr/bin/alfresco-docker-imagemagick.jar
|