+6
-1
@@ -52,6 +52,9 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
|||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
# Install PHP extensions
|
# Install PHP extensions
|
||||||
|
RUN docker-php-ext-configure \
|
||||||
|
opcache --enable-opcache
|
||||||
|
|
||||||
RUN docker-php-ext-install \
|
RUN docker-php-ext-install \
|
||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
pgsql \
|
pgsql \
|
||||||
@@ -64,7 +67,9 @@ RUN docker-php-ext-install \
|
|||||||
soap \
|
soap \
|
||||||
gd
|
gd
|
||||||
|
|
||||||
RUN docker-php-ext-enable imagick opcache
|
RUN docker-php-ext-enable \
|
||||||
|
imagick \
|
||||||
|
opcache
|
||||||
|
|
||||||
# PHP
|
# PHP
|
||||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_FILE" && \
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_FILE" && \
|
||||||
|
|||||||
+14
-15
@@ -38,21 +38,20 @@ RUN apk add --no-cache --virtual .build-deps \
|
|||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
linux-headers
|
linux-headers
|
||||||
|
|
||||||
RUN docker-php-ext-configure gd \
|
RUN docker-php-ext-configure \
|
||||||
--with-freetype \
|
gd --with-freetype --with-jpeg \
|
||||||
--with-jpeg \
|
&& docker-php-ext-install -j$(nproc) \
|
||||||
&& docker-php-ext-install -j$(nproc) \
|
pdo_mysql \
|
||||||
pdo_mysql \
|
pdo_pgsql \
|
||||||
pdo_pgsql \
|
pgsql \
|
||||||
pgsql \
|
zip \
|
||||||
zip \
|
bcmath \
|
||||||
bcmath \
|
soap \
|
||||||
soap \
|
gd \
|
||||||
gd \
|
intl \
|
||||||
intl \
|
opcache \
|
||||||
opcache \
|
sockets \
|
||||||
sockets \
|
pcntl
|
||||||
pcntl
|
|
||||||
|
|
||||||
RUN pecl install imagick \
|
RUN pecl install imagick \
|
||||||
&& docker-php-ext-enable imagick
|
&& docker-php-ext-enable imagick
|
||||||
|
|||||||
Reference in New Issue
Block a user