Closed devraj closed 1 year ago
Found this article by tiangolo on doing exactly this https://tiangolo.medium.com/react-in-docker-with-nginx-built-with-multi-stage-docker-builds-including-testing-8cc49d6ec305
worth a read and adopt the best practices.
The article also outlines a multi stage build.
While most use cases will use an objet store to serve the built static files, we should provide an example where we are serving the files from a Docker container with a web server like ngnix
Tutorial: