Updated development Docker image to PHP 8.0 and enabled opcache

This commit is contained in:
Chris Kankiewicz
2020-12-05 16:22:55 -07:00
parent 2f2617fd19
commit b338b813fe
3 changed files with 2032 additions and 2019 deletions

View File

@@ -3,6 +3,16 @@ error_reporting = E_ALL
log_errors = On
memory_limit = -1
[opcache]
opcache.enable=1
opcache.fast_shutdown=1
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.max_wasted_percentage=10
opcache.revalidate_freq=0
opcache.validate_timestamps=1
[xdebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1

View File

@@ -1,16 +1,19 @@
FROM php:7.4-apache
FROM php:8.0-apache
LABEL maintainer="Chris Kankiewicz <Chris@ChrisKankiewicz.com>"
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV COMPOSER_HOME="/tmp"
ENV PATH="app/vendor/bin:${PATH}"
COPY --from=composer:2.0 /usr/bin/composer /usr/bin/composer
COPY .docker/apache/config/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini
RUN a2enmod rewrite
RUN apt-get update && apt-get install --assume-yes libmemcached-dev libzip-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install zip \
&& pecl install memcached redis xdebug \
&& docker-php-ext-enable memcached redis xdebug
COPY .docker/apache/config/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini
ENV PATH="app/vendor/bin:${PATH}"
RUN a2enmod rewrite
RUN docker-php-ext-install opcache zip \
&& pecl install apcu memcached redis xdebug \
&& docker-php-ext-enable apcu memcached redis xdebug

4016
composer.lock generated

File diff suppressed because it is too large Load Diff