From c689571c54ac909869b7f3490999a336796356b4 Mon Sep 17 00:00:00 2001 From: johackim Date: Mon, 14 Oct 2024 19:09:49 +0200 Subject: [PATCH] feat: add imagemagick --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ff09a92cd..32581b529 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,16 @@ ENV APACHE_LOCK_DIR=/var/lock/apache2 ENV APACHE_PID_FILE=/var/run/apache2/apache2.pid -RUN apt update && apt install -y git zip unzip libzip-dev libicu-dev nodejs npm +RUN apt update && apt install -y git zip unzip libzip-dev libicu-dev libmagickwand-dev imagemagick nodejs npm RUN git clone https://github.com/omeka/omeka-s . RUN npm install +RUN yes '' | pecl install imagick + +RUN docker-php-ext-enable imagick + RUN docker-php-ext-install pdo_mysql intl RUN npx gulp init @@ -26,6 +30,8 @@ RUN a2enmod rewrite RUN chown -R www-data:www-data /var/www/html/ +RUN apt-get clean && rm -rf /var/lib/apt/lists/* + COPY docker-entrypoint.sh . VOLUME /var/www/html/files