TL;DR —
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?
[story continues]
Written by
@melvinkcx2
Software Engineer | Maintainer of fastapi-events
Topics and
tags
tags
docker|javascript|aws|nuxtjs|latest-tech-stories|hackernoon-top-story|nodejs|aws-ecs
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: mrB5M0oMqVszRUqP4F7n-8R8FkuY7_nDwR0ebsgBNUo
