Skip to content

Commit

Permalink
Fix larvel-s to not use JIT (#6314)
Browse files Browse the repository at this point in the history
* Fix larvel-s to not use JIT
#6184

* Clean dockerfiles

* Use php:8.0-cli image
  • Loading branch information
joanhey authored Jan 23, 2021
1 parent a924590 commit 93df532
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions frameworks/PHP/laravel/laravel-laravel-s.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM php:8.0
FROM php:8.0-cli

RUN pecl install swoole > /dev/null && \
docker-php-ext-enable swoole
RUN docker-php-ext-install pdo_mysql 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
#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

ADD ./ /laravel
WORKDIR /laravel
Expand Down
3 changes: 2 additions & 1 deletion frameworks/PHP/laravel/laravel.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN apt-get update -yqq > /dev/null && \
apt-get install -yqq nginx git unzip php8.0 php8.0-common php8.0-cli php8.0-fpm php8.0-mysql > /dev/null
apt-get install -yqq nginx git unzip \
php8.0-cli php8.0-fpm php8.0-mysql > /dev/null
RUN apt-get install -yqq php8.0-mbstring php8.0-xml > /dev/null

RUN apt-get install -yqq composer > /dev/null
Expand Down
6 changes: 3 additions & 3 deletions frameworks/PHP/lumen/lumen-laravel-s.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM php:8.0
FROM php:8.0-cli

RUN pecl install swoole > /dev/null && \
docker-php-ext-enable swoole
RUN docker-php-ext-install pdo_mysql 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
#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

ADD ./ /lumen
WORKDIR /lumen
Expand Down
3 changes: 2 additions & 1 deletion frameworks/PHP/lumen/lumen.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN apt-get update -yqq > /dev/null && \
apt-get install -yqq nginx git unzip php8.0 php8.0-common php8.0-cli php8.0-fpm php8.0-mysql > /dev/null
apt-get install -yqq nginx git unzip \
php8.0-cli php8.0-fpm php8.0-mysql > /dev/null
RUN apt-get install -yqq php8.0-mbstring php8.0-xml > /dev/null

RUN apt-get install -yqq composer > /dev/null
Expand Down

0 comments on commit 93df532

Please sign in to comment.