Skip to content
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
16 changes: 16 additions & 0 deletions frameworks/PHP/laravel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
"App\\": "app/"
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-mbstring":"*",
"symfony/polyfill-intl-idn": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*",
"symfony/polyfill-php82": "*",
"symfony/polyfill-php83": "*",
"symfony/polyfill-php84": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions frameworks/PHP/laravel/laravel-octane-frankenphp.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM dunglas/frankenphp


RUN apt-get update -yqq && apt-get install libicu-dev unzip -y
RUN install-php-extensions \
intl \
pcntl \
pdo_mysql \
zip > /dev/null

COPY --link . /app/

COPY --link . /app/
COPY --from=composer --link /usr/bin/composer /usr/local/bin/composer

RUN mkdir -p bootstrap/cache \
Expand Down
3 changes: 2 additions & 1 deletion frameworks/PHP/laravel/laravel-ripple.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RUN apt-get update -yqq >> /dev/null
RUN apt-get install -y libevent-dev \
libssl-dev \
pkg-config \
libicu-dev \
build-essential \
unzip >> /dev/null

Expand All @@ -15,7 +16,7 @@ RUN docker-php-ext-install pdo_mysql \

RUN pecl install event >> /dev/null

RUN docker-php-ext-enable pdo_mysql opcache posix pcntl sockets
RUN docker-php-ext-enable intl pdo_mysql opcache posix pcntl sockets
RUN docker-php-ext-enable --ini-name zz-event.ini event
RUN echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN echo "opcache.jit=1205" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
Expand Down
7 changes: 5 additions & 2 deletions frameworks/PHP/laravel/laravel-roadrunner.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM php:8.4-cli

RUN docker-php-ext-install pdo_mysql pcntl opcache sockets > /dev/null
RUN apt-get update -yqq && \
apt-get install -yqq libpq-dev libicu-dev > /dev/null && \
docker-php-ext-install intl pdo_mysql pcntl opcache sockets > /dev/null

RUN echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN echo "opcache.jit=1205" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
Expand All @@ -26,6 +27,8 @@ RUN composer require laravel/octane --update-no-dev --no-scripts --quiet
RUN php artisan octane:install --server="roadrunner"
RUN php artisan optimize

RUN export WORKERS=$((1*$(nproc)))
RUN if [ $(nproc) > 2 ]; then export WORKERS=$((1*$(nproc) -1)) ; fi;
EXPOSE 8080

# https://artisan.page/12.x/
Expand Down
4 changes: 2 additions & 2 deletions frameworks/PHP/laravel/laravel-swoole.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM phpswoole/swoole:php8.4

RUN docker-php-ext-install pcntl opcache curl > /dev/null

RUN apt-get update -yqq && apt-get install libicu-dev -y
RUN docker-php-ext-install intl pcntl opcache> /dev/null
RUN echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN echo "opcache.jit=1205" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN echo "opcache.jit_buffer_size=128M" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
Expand Down
2 changes: 1 addition & 1 deletion frameworks/PHP/laravel/laravel-workerman.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null && \
apt-get install -yqq git unzip \
php8.4-cli php8.4-mysql php8.4-mbstring php8.4-xml php8.4-curl > /dev/null
php8.4-cli php8.4-mysql php8.4-mbstring php8.4-xml php8.4-intl php8.4-curl > /dev/null

COPY --from=composer --link /usr/bin/composer /usr/local/bin/composer

Expand Down
1 change: 1 addition & 0 deletions frameworks/PHP/symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-mbstring":"*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*",
Expand Down
2 changes: 1 addition & 1 deletion frameworks/PHP/symfony/symfony-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \

RUN apt-get install -yqq nginx git unzip curl \
php8.4-cli php8.4-fpm php8.4-mysql \
php8.4-mbstring php8.4-xml php8.4-curl php8.4-dev > /dev/null
php8.4-mbstring php8.4-xml php8.4-curl > /dev/null

COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/composer

Expand Down
2 changes: 1 addition & 1 deletion frameworks/PHP/symfony/symfony.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \

RUN apt-get install -yqq nginx git unzip curl \
php8.4-bcmath php8.4-cli php8.4-fpm php8.4-pgsql \
php8.4-mbstring php8.4-xml php8.4-curl php8.4-dev php8.4-intl > /dev/null
php8.4-mbstring php8.4-xml php8.4-curl php8.4-intl > /dev/null

COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/composer

Expand Down
Loading