mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-24 06:33:42 +02:00
Updated development Docker image to PHP 8.0 and enabled opcache
This commit is contained in:
@@ -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
|
||||
|
25
Dockerfile
25
Dockerfile
@@ -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
4016
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user