Last active
August 5, 2025 10:22
-
-
Save dinamic/60a573e6ffa8749f94931a4d7cfcfcb8 to your computer and use it in GitHub Desktop.
Revisions
-
dinamic revised this gist
Jun 10, 2024 . 1 changed file with 10 additions and 12 deletions.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 charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,21 @@ FROM php:8.3-bookworm RUN apt update -q && apt upgrade -y \ && apt-get install -y build-essential git libnode-dev RUN cp -s /usr/lib/`uname -m`-linux-gnu/libv8* /usr/local/lib/ \ && cp -rs /usr/include/node/* /usr/local/include/ # TODO: Use PECL WORKDIR /tmp RUN git clone https://github.com/phpv8/v8js.git --branch php8 WORKDIR /tmp/v8js RUN phpize && ./configure && make && make test \ && cp -v modules/v8js.* `php -r "echo ini_get('extension_dir');"` \ && docker-php-ext-enable v8js \ && rm -rf /tmp/v8js \ && php --ri v8js WORKDIR /var/www/html -
dinamic revised this gist
Apr 8, 2024 . 1 changed file with 1 addition and 1 deletion.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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM php:8.3-bookworm RUN apt update -q \ && apt upgrade -y \ && apt-get install -y build-essential git libnode-dev RUN mkdir -p /opt/v8 \ && ln -s /usr/include/node /opt/v8/include \ -
dinamic revised this gist
Apr 8, 2024 . 1 changed file with 1 addition and 1 deletion.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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN apt update -q \ RUN mkdir -p /opt/v8 \ && ln -s /usr/include/node /opt/v8/include \ && ln -s /usr/lib/$(uname -m)-linux-gnu /opt/v8/lib WORKDIR /tmp RUN git clone https://github.com/phpv8/v8js.git -
dinamic renamed this gist
Apr 5, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dinamic renamed this gist
Apr 5, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dinamic created this gist
Apr 5, 2024 .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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ FROM php:8.3-bookworm RUN apt update -q \ && apt upgrade -y \ && apt-get install -y build-essential curl git python3 libglib2.0-dev ninja-build clang procps libnode-dev RUN mkdir -p /opt/v8 \ && ln -s /usr/include/node /opt/v8/include \ && ln -s /usr/lib/x86_64-linux-gnu /opt/v8/lib WORKDIR /tmp RUN git clone https://github.com/phpv8/v8js.git WORKDIR /tmp/v8js RUN phpize \ && ./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++" \ && make \ && make test \ && cp -v /tmp/v8js/modules/v8js.* `php -r "echo ini_get('extension_dir');"` \ && docker-php-ext-enable v8js \ && rm -rf /tmp/v8js WORKDIR /var/www/html