How to add ReactJs to containerised Symfony 5 Project?

I have a project which is made of containers. Apache, Symfony and Mysql are already working like expected, but what are the best practices when adding a frontend framework? Should I add another container with NodeJs? or is it better with Yarn? is it maybe possible to add React without either of them? Should I install node and React inside the running container?
The amount of examples has made it quite difficult to decide how to do it. Many of them which create the app by running a single command line, but I would like to set it into either the Dockerfile or the docker-compose.yaml.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *