Skip to content

Upgrade PHP #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 999-php.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
memory_limit = -1
error_reporting = E_ALL | E_STRICT
max_execution_time = 0
max_input_time = 0
post_max_size = 100M
upload_max_filesize = 100M
21 changes: 14 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM php:7.0-apache
FROM php:7.4-apache
MAINTAINER Webgriffe Srl <support@webgriffe.com>

# Install GD
RUN apt-get update \
&& apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng16-16 \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
&& docker-php-ext-install gd

# Install MCrypt
RUN apt-get update \
&& apt-get install -y libmcrypt-dev \
&& docker-php-ext-install mcrypt
&& pecl install mcrypt-1.0.3 \
&& docker-php-ext-enable mcrypt

# Install Intl
RUN apt-get update \
Expand All @@ -19,7 +20,7 @@ RUN apt-get update \

ENV XDEBUG_ENABLE 0
RUN pecl config-set preferred_state beta \
&& pecl install -o -f xdebug \
&& pecl install -o -f xdebug-3.0.0 \
&& rm -rf /tmp/pear \
&& pecl config-set preferred_state stable
COPY ./99-xdebug.ini.disabled /usr/local/etc/php/conf.d/
Expand All @@ -31,6 +32,10 @@ RUN docker-php-ext-install mysqli pdo_mysql
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer

# Install Oniguruma
RUN apt-get update \
&& apt-get install -y libonig-dev

# Install mbstring
RUN docker-php-ext-install mbstring

Expand All @@ -43,7 +48,9 @@ RUN apt-get update \
RUN docker-php-ext-install opcache

# Install PHP zip extension
RUN docker-php-ext-install zip
RUN apt-get update \
&& apt-get install -y libzip-dev \
&& docker-php-ext-install zip

# Install Git
RUN apt-get update \
Expand Down Expand Up @@ -77,7 +84,7 @@ RUN apt-get update \

# Install MySQL CLI Client
RUN apt-get update \
&& apt-get install -y mysql-client
&& apt-get install -y default-mysql-client

########################################################################################################################

Expand Down