Great post. Another important fact of using docker to containerize react apps (nextjs) is: Build dependencies are not needed for running the app.
Is not un-common for react apps to have Dockerfiles that do multi-stage builds. One stage installs all dependencies (including development) and does the build. A second stage then just installs production dependencies and copies the build from previous stage. Making final container images smaller and limited to only run the app.