linc70j / lavawhale Goto Github PK
View Code? Open in Web Editor NEWDocker的PHP開發環境
License: MIT License
Docker的PHP開發環境
License: MIT License
spatie/laravel-server-side-rendering
可以用以上兩種方式產生 ssr 的檔案
如果使用 Node.js 目前的設定只有再 circleci build 的時候短暫的加進來而已
web 這個 image 本身沒有安裝 Node.js
所以 laravel 會說
Error Output:
================
sh: 1: /usr/bin/node: not found
然而使用 V8Js,今日測試的結果似乎是因為 docker 裡的 os 是 Debian 怎麼測試都無法完成安裝
以下是測試的主要設定 其他設定 forked from Linc70J/lavawhale
Dockerfile
###########################################################################
# V8Js:
###########################################################################
ARG INSTALL_V8Js=false
RUN if [ ${INSTALL_V8Js} = true ]; then \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ondrej/php && \
add-apt-repository -y ppa:pinepain/libv8 \
;fi
RUN if [ ${INSTALL_V8Js} = true ]; then \
apt-get -y install libv8-dev \
;fi
RUN if [ ${INSTALL_V8Js} = true ]; then \
pecl install v8js && \
docker-php-ext-enable v8js \
;fi
以及參考官方的做法都無法安裝
v8js/README.Linux.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.