refactor(docker): replace install-php-extensions script with direct docker-php-ext-install commands in Dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -3,22 +3,24 @@ WORKDIR /var/www/html
|
|||||||
|
|
||||||
ENV COMPOSER_ALLOW_SUPERUSER=1
|
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
COPY docker/php/install-php-extensions /usr/local/bin/install-php-extensions
|
|
||||||
COPY docker/apt/debian.sources /etc/apt/sources.list.d/debian.sources
|
COPY docker/apt/debian.sources /etc/apt/sources.list.d/debian.sources
|
||||||
|
|
||||||
RUN apt-get -o Acquire::Check-Valid-Until=false update \
|
RUN apt-get -o Acquire::Check-Valid-Until=false update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
$PHPIZE_DEPS \
|
||||||
curl \
|
curl \
|
||||||
default-mysql-client \
|
default-mysql-client \
|
||||||
|
default-libmysqlclient-dev \
|
||||||
|
libicu-dev \
|
||||||
|
libzip-dev \
|
||||||
unzip \
|
unzip \
|
||||||
&& install-php-extensions \
|
&& docker-php-ext-install -j"$(nproc)" bcmath intl pcntl pdo_mysql zip \
|
||||||
bcmath \
|
|
||||||
intl \
|
|
||||||
pcntl \
|
|
||||||
pdo_mysql \
|
|
||||||
zip \
|
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
&& apt-get purge -y --auto-remove \
|
&& apt-get purge -y --auto-remove \
|
||||||
|
$PHPIZE_DEPS \
|
||||||
|
default-libmysqlclient-dev \
|
||||||
|
libicu-dev \
|
||||||
|
libzip-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY docker/php/php.ini /usr/local/etc/php/conf.d/99-production.ini
|
COPY docker/php/php.ini /usr/local/etc/php/conf.d/99-production.ini
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user