File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ ARG IMAGICK_VERSION=3.7.0
55FROM php:${PHP_VERSION}-apache
66
77# PHP Extensions
8- RUN cd /tmp
98ARG IMAGICK_VERSION
109ENV IMAGICK_VERSION=${IMAGICK_VERSION}
10+
11+ WORKDIR /tmp
12+
1113RUN apt-get update && apt-get install -y --no-install-recommends \
1214 libpng-dev \
1315 libmcrypt-dev \
@@ -27,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2729 pkg-config \
2830 libmagickwand-dev \
2931 libjpeg-dev \
30- && curl -L -v - o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/tags/${IMAGICK_VERSION}.tar.gz \
32+ && curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/tags/${IMAGICK_VERSION}.tar.gz \
3133 && tar --strip-components=1 -vxf /tmp/imagick.tar.gz \
3234 && sed -i 's/php_strtolower/zend_str_tolower/g' imagick.c \
3335 && phpize \
@@ -64,6 +66,7 @@ ENV PATH="$PATH:~/.composer/vendor/bin"
6466
6567# Apache Extensions
6668RUN a2enmod headers rewrite expires deflate
69+
6770# Memory limit
6871RUN echo "memory_limit = ${MEMORY_LIMIT}" >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
6972
You can’t perform that action at this time.
0 commit comments