Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
view_component
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
Used this to update Rails and Webpacker to the latest
Yes, add node_modules in dockerignore. You don't want to share node_modules between the host and the docker instance. In production environment, you won't have node_modules in the host machine anyway, so you can't even copy it over. And you are right. Packages like [node-gyp](https://github.com/nodejs/node-gyp) is dependent on the OS you use, so you can't simply copy that over to Docker. Run yarn install with yarn.lock inside Docker.
Rails has very cool stuff for frontend as well! The most recent developments are https://viewcomponent.org/ and https://hotwire.dev/
Related posts
- Why is node_modules heavier than the universe? (No seriously, why is it so big?)
- I can't install tfjs-node(npm install @tensorflow/tfjs-node)
- Organize Business Logic in Your Ruby on Rails Application
- Have you been using ViewComponent. What advantages do you see in it?
- A filosofia coletiva no processo de desenvolvimento de software da Plataformatec