-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add PHP 8.4 #294
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
Open
tdferreira
wants to merge
3
commits into
sprintcube:master
Choose a base branch
from
tdferreira:feature/add-php84
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add PHP 8.4 #294
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
FROM php:8.4-apache-bookworm | ||
|
||
# Surpresses debconf complaints of trying to install apt packages interactively | ||
# https://github.com/moby/moby/issues/4032#issuecomment-192327844 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update | ||
RUN apt-get -y update --fix-missing && \ | ||
apt-get upgrade -y && \ | ||
apt-get --no-install-recommends install -y apt-utils && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini | ||
|
||
# Install useful tools and install important libaries | ||
RUN apt-get -y update && \ | ||
apt-get -y --no-install-recommends install nano wget \ | ||
dialog \ | ||
libsqlite3-dev \ | ||
libsqlite3-0 && \ | ||
apt-get -y --no-install-recommends install default-mysql-client \ | ||
zlib1g-dev \ | ||
libzip-dev \ | ||
libicu-dev && \ | ||
apt-get -y --no-install-recommends install --fix-missing apt-utils \ | ||
build-essential \ | ||
git \ | ||
curl \ | ||
libonig-dev \ | ||
fail2ban && \ | ||
apt-get install -y iputils-ping && \ | ||
apt-get -y --no-install-recommends install --fix-missing libcurl4 \ | ||
libcurl4-openssl-dev \ | ||
zip \ | ||
unzip \ | ||
openssl && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
# Install xdebug | ||
RUN pecl install xdebug-3.4.0 && \ | ||
docker-php-ext-enable xdebug && \ | ||
mkdir /var/log/xdebug | ||
|
||
# Install redis | ||
RUN pecl install redis-6.1.0 && \ | ||
docker-php-ext-enable redis | ||
|
||
# Install imagick | ||
RUN apt-get update && \ | ||
apt-get -y --no-install-recommends install --fix-missing libmagickwand-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Temporary fix for php84 https://github.com/Imagick/imagick/pull/690#issuecomment-2566064269 | ||
RUN cd /usr/local/src && \ | ||
git clone https://github.com/Imagick/imagick && \ | ||
cd imagick && \ | ||
git checkout master && \ | ||
phpize && \ | ||
./configure CPPFLAGS='-Dphp_strtolower=zend_str_tolower' && \ | ||
make && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf imagick && \ | ||
docker-php-ext-enable imagick | ||
|
||
# Other PHP8 Extensions | ||
|
||
RUN docker-php-ext-install pdo_mysql && \ | ||
docker-php-ext-install pdo_sqlite && \ | ||
docker-php-ext-install bcmath && \ | ||
docker-php-ext-install mysqli && \ | ||
docker-php-ext-install curl && \ | ||
docker-php-ext-install zip && \ | ||
docker-php-ext-install -j$(nproc) intl && \ | ||
docker-php-ext-install mbstring && \ | ||
docker-php-ext-install gettext && \ | ||
docker-php-ext-install calendar && \ | ||
docker-php-ext-install exif | ||
|
||
|
||
# Install Freetype | ||
RUN apt-get -y update && \ | ||
apt-get --no-install-recommends install -y libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg && \ | ||
docker-php-ext-install gd | ||
|
||
# Insure an SSL directory exists | ||
RUN mkdir -p /etc/apache2/ssl | ||
|
||
# Enable SSL support | ||
RUN a2enmod ssl && a2enmod rewrite | ||
|
||
# Enable apache modules | ||
RUN a2enmod rewrite headers | ||
|
||
# Cleanup | ||
RUN rm -rf /usr/src/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.