nickjj / docker-rails-example

A production ready example Rails app that's using Docker and Docker Compose.
MIT License
942 stars 185 forks source link

Do we need Nodejs if all assets is disabled ? #55

Closed revskill10 closed 1 year ago

revskill10 commented 1 year ago

Thanks for the useful repository. I have one question.

In my app, all assets is precompiled offline and put in CDN, so i don't run assets when deploying, so is NodeJS nessessary in Dockerfile ?

nickjj commented 1 year ago

Hi,

If something else other than Rails is placing the assets on a CDN then you don't need Node to precompile them in production. In development if you're not using esbuild or Tailwind then you also don't need Node.

nickjj commented 1 year ago

I'm closing this as it answers the question.