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.

Software Engineer @ Coalition Inc., Miami FL

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store