Writing a Good Node.js Dockerfile
March 28, 2023
Categories: Tags:TL;DR: Tutorials often show simplistic, naive Dockerfiles. We can do better.
...TL;DR: Tutorials often show simplistic, naive Dockerfiles. We can do better.
...TL;DR: The simplest possible example to demonstrate the difference between Docker’s CMD and ENTRYPOINT instructions:
...TL;DR: Setting up a custom link forwarder (e.g. links.devopsdirective.com/foo
) takes about 3 minutes using Cloudflare workers!
TL;DR: Need to set up a quick maintenance page for a service hosted in Kubernetes? You can create a custom page and host it with nginx without even needing a custom container image!
A gist containing the full code can be found here: LINK
...TL;DR: If you develop web applications, inevitably you will have secrets (database credentials, 3rd party API keys, etc…) that you need to manage. I have seen a variety of approaches used here and wanted to walk through them, from least secure to most.
There are always trade-offs when writing software, and in this case, the tradeoff is between convenience and security. The ideal solution will establish convenient developer workflows while also protecting user data.
...TL;DR: I used to host my site on a virtual machine running Caddy webserver, but recently migrated it to Google Cloud Storage with Cloudflare in front of it as a proxy/cache/SSL termination solution. It’s pretty awesome! 😎
I also recorded a video about this setup on YouTube. ← Check out the video and subscribe if you are into this sort of thing 🙏
...