shakacode / react_on_rails

Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
https://www.shakacode.com/react-on-rails/docs/
MIT License
5.09k stars 627 forks source link

Support Alpine #1342

Closed EnziinSystem closed 3 years ago

EnziinSystem commented 3 years ago

Hi,

I dockerized my rails app to image use Alpine.

'react_on_rails' gem require 'mini_racer' and mini_racer require libv8.

But libv8 can not build with native extensions on Alpine

Finally, I can not build Gemfile with react_on_rails.

Thank you for any idea.

justin808 commented 3 years ago

Hi @EnziinSystem, why do you think mini_racer is a requirement?

I think only ExecJS is: https://github.com/shakacode/react_on_rails/blob/master/react_on_rails.gemspec.

If you use React on Rails Pro, then you'll use Node.js for rendering. Can you run Node.js on Alpine?

I'm open to pull requests!