You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8 is quite consistent with its extensions and configuration, it may be more efficient for maintainers to use a single Dockerfile with multiple targets. This mean a single configuration file for all PHP 8 targets and parallel build to decrease build time.
This will solve #16 and reduce CI time in the future.
# ================================# Configure base images# ================================FROM php:8.0-fpm as base_php_80
FROM php:8.1-fpm as base_php_81
FROM php:8.2-fpm as base_php_82
FROM php:8.3-fpm as base_php_83
FROM composer:2 as composer
FROM mlocati/php-extension-installer as extension-installer
# ================================# Configure PHP# ================================FROM scratch as config
WORKDIR /etc/php/conf.d/
COPY --link symfony.ini .
WORKDIR /etc/php/pool.d/
COPY --link symfony.pool.conf .
# ================================# Build Final Images# ================================FROM base_php_80 as php_80
COPY --from=config / /
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
COPY --from=extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extension intl gd opcache mbstring zip pdo_pgsql soap pgsql exif apcu memcached imagick xdebug
FROM base_php_81 as php_81
COPY --from=config / /
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
COPY --from=extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extension intl gd opcache mbstring zip pdo_pgsql soap pgsql exif apcu memcached imagick xdebug
# ...
The text was updated successfully, but these errors were encountered:
aegypius
changed the title
Proposal - Merge PHP 8 Proposal into a single Dockerfile
Proposal - Merge PHP 8 versions into a single Dockerfile
Feb 19, 2024
PHP 8 is quite consistent with its extensions and configuration, it may be more efficient for maintainers to use a single Dockerfile with multiple targets. This mean a single configuration file for all PHP 8 targets and parallel build to decrease build time.
This will solve #16 and reduce CI time in the future.
The text was updated successfully, but these errors were encountered: