Skip to content

Commit 729584d

Browse files
authored
Merge pull request #46 from rm-yakovenko/Refactor-Pecl
Refactor - Pecl extensions
2 parents a29ceee + 240c816 commit 729584d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/app/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM php:7-fpm
22

3+
ARG PECL_EXTENSIONS="apcu redis"
4+
35
RUN apt-get -y update && \
46
apt-get -y install --no-install-recommends git unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev libzip-dev libxml2-dev libxslt-dev libwebp-dev && \
57
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr && \
68
docker-php-ext-install -j$(nproc) pdo_mysql bcmath gd intl opcache zip soap xsl && \
7-
pecl install apcu && \
8-
docker-php-ext-enable apcu && \
9+
pecl install $PECL_EXTENSIONS && \
10+
docker-php-ext-enable $PECL_EXTENSIONS && \
911
apt-get clean && \
1012
rm -r /var/lib/apt/lists/* && \
1113
rm -rf /var/cache/apt/* && \

0 commit comments

Comments
 (0)