https://github.com/chenos/docker-v8
https://github.com/chenos/docker-v8
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chenos/docker-v8
- Owner: chenos
- Created: 2018-01-05T05:58:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T13:43:45.000Z (about 8 years ago)
- Last Synced: 2023-03-10T18:16:09.148Z (over 3 years ago)
- Language: C++
- Size: 21.4 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerfile
```Dockerfile
FROM php:7.1-fpm
RUN apt-get update
RUN apt-get install -y --no-install-recommends git zlib1g-dev
RUN docker-php-ext-install zip
RUN git clone https://github.com/chenos/v8.git /opt/v8
RUN git clone https://github.com/phpv8/v8js.git /tmp/v8js
RUN cd /opt/v8 && git checkout tags/v6.4.388.18
# RUN cd /tmp/v8js && git checkout tags/2.1.0
RUN cd /tmp/v8js && phpize
RUN cd /tmp/v8js && ./configure CXXFLAGS="-Wall -Wno-write-strings -Werror" \
LDFLAGS="-lstdc++" --with-v8js=/opt/v8
RUN cd /tmp/v8js && make
RUN cd /tmp/v8js && make test
RUN cd /tmp/v8js && make install
RUN docker-php-ext-enable v8js
```