-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
257 additions
and
335 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 |
---|---|---|
@@ -1,37 +1,51 @@ | ||
ARG PHP_VERSION | ||
FROM php:${PHP_VERSION}-cli-buster | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y autoconf pkg-config && \ | ||
pecl channel-update pecl.php.net && \ | ||
pecl install xdebug && \ | ||
docker-php-ext-enable opcache xdebug | ||
|
||
RUN echo '\ | ||
xdebug.client_host=host.docker.internal\n\ | ||
xdebug.mode=develop\n\ | ||
xdebug.start_with_request=yes\n\ | ||
' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
|
||
RUN echo '\ | ||
display_errors=On\n\ | ||
error_reporting=E_ALL\n\ | ||
date.timezone=UTC\n\ | ||
' >> /usr/local/etc/php/conf.d/php.ini | ||
ARG PHP_VERSION=8.2 | ||
FROM php:${PHP_VERSION}-cli-bookworm | ||
|
||
RUN <<-EOF | ||
docker-php-ext-enable opcache | ||
|
||
if [ "$PHP_VERSION" \< "8.4" ]; then | ||
apt-get update | ||
apt-get install -y autoconf pkg-config | ||
pecl channel-update pecl.php.net | ||
pecl install xdebug | ||
docker-php-ext-enable xdebug | ||
fi | ||
EOF | ||
|
||
RUN <<-EOF | ||
cat <<-SHELL >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=develop | ||
xdebug.start_with_request=yes | ||
SHELL | ||
|
||
cat <<-SHELL >> /usr/local/etc/php/conf.d/php.ini | ||
display_errors=On | ||
error_reporting=E_ALL | ||
date.timezone=UTC | ||
SHELL | ||
EOF | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN apt-get update && \ | ||
apt-get install unzip && \ | ||
curl -s https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && \ | ||
mv composer.phar /usr/local/bin/composer && \ | ||
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"\n' >> /root/.bashrc | ||
RUN <<-EOF | ||
apt-get update | ||
apt-get install unzip | ||
curl -s https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet | ||
mv composer.phar /usr/local/bin/composer | ||
cat <<-SHELL >> /root/.bashrc | ||
export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
SHELL | ||
EOF | ||
|
||
RUN composer global require squizlabs/php_codesniffer | ||
|
||
# | ||
# Package specifics stages | ||
# | ||
RUN apt-get update && \ | ||
apt-get install -y libpng-dev && \ | ||
RUN <<-EOF | ||
apt-get update | ||
apt-get install -y libpng-dev | ||
docker-php-ext-install gd | ||
EOF |
This file contains 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 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 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 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 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 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
Oops, something went wrong.