To start of, why would anyone put a PWApplication in a Docker? Why?
Complex, hard-to-setup installations put in a docker to prevent having to do it over and over again might make sense. But a PWA?
A VPS is in itself a container. Why do I need a container within a container?
The usual common reason given is: Docker ensures reproducibility. But haven’t we been reproducing steps using CIs since the beginning of the universe?
Why do I need a CI to deploy a Docker onto a VPS?
To shed some more light, here’s how I prefer to deploy my PWAs. My CI script does this
- CI gets triggered whenever something touches master (using master here, but works similar for staging and dev)
- git pulls from master branch of repository
npm install && npm build --prod
- If any tests I run them too, and if all checks out and nothing breaks
With the above, no need to reload nginx. The next visits by users will automatically pick up the new files.
Am I missing anything above?