extract duplicate command
This commit is contained in:
parent
360dfbe6ec
commit
07cd057cec
@ -41,10 +41,11 @@ RUN pecl channel-update pecl.php.net; \
|
||||
docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
|
||||
|
||||
RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||
pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
|
||||
;else \
|
||||
pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
|
||||
;fi
|
||||
pecl install memcached-2.2.0 mcrypt-1.0.1; \
|
||||
else \
|
||||
pecl install memcached mcrypt-1.0.1; \
|
||||
fi; \
|
||||
docker-php-ext-enable memcached
|
||||
|
||||
# Add a non-root user to help install ffmpeg:
|
||||
ARG PUID=1000
|
||||
|
@ -40,10 +40,11 @@ RUN pecl channel-update pecl.php.net; \
|
||||
docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
|
||||
|
||||
RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||
pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
|
||||
;else \
|
||||
pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
|
||||
;fi
|
||||
pecl install memcached-2.2.0 mcrypt-1.0.1; \
|
||||
else \
|
||||
pecl install memcached mcrypt-1.0.1; \
|
||||
fi; \
|
||||
docker-php-ext-enable memcached
|
||||
|
||||
# Add a non-root user:
|
||||
ARG PUID=1000
|
||||
|
Loading…
Reference in New Issue
Block a user