There are 2 major ways to dockerize Nuxt.js apps, and each of them has its shortcomings. Nuxt build on run: The Nuxt app is built after Docker image is built, when the container is spawned. The downside of this is the container boot time takes significantly longer as it involves building the artifacts on run. This also violates the build/release/run principle of a 12-factor app. How to safely inject environment variables into Dockerized Nuxt.js on runtime?