Curing Image Bloat With Scratch and Distroless Base Images
Shrink container images with multi-stage builds, the empty scratch base, and distroless runtimes — smaller pulls, fewer CVEs, faster starts.
NetBay journal
Practical guides for Linux, containers, CI/CD, self-hosting, and running VPS infrastructure from Netbay Engineering.
599 articles · 24 topics
Shrink container images with multi-stage builds, the empty scratch base, and distroless runtimes — smaller pulls, fewer CVEs, faster starts.
Build a complete first automation project: inventory, an idempotent playbook, a dry-run, a real apply, and a scheduled re-converge.
Serialize SQLite writes with a queue or a single writer process, and graduate to Postgres when several processes must commit at once on a VPS.
Diagnose HTTPS errors by chain, clock skew, and name mismatch using openssl and browser clues before you reissue a certificate that already works.
Disable WP-Cron and Laravel web pings, then run wp-cron.php and artisan schedule:run from system cron so jobs fire on time without depending on visitor traffic.
Keep a second key, a second sshd port, and a Web VNC console mindset so a bad sshd reload is an inconvenience, not a lockout on a Lucknow VPS.
Read auth logs like a security analyst, spot brute-force bursts and compromised accounts, and act on suspicious SSH login signals before they become a breach.
RHEL's free Universal Base Images give containers a signed, glibc-compatible runtime down to a few megabytes, with UBI micro at the distroless edge.
Trigger consistent backups of databases running in Docker by executing pg_dump and mysqldump inside containers, with timed dumps and status checks.
Submodules pin an external commit; subtrees vendor the code wholesale. Here is how both behave on GitHub, their sharp edges, and when to use each one.
Apply layered input validation and payload limits to stop malformed data, injection, and oversized request attacks against your API endpoints.
Choose a 3B, 7B, or 8B Q4 GGUF for an 8 GB Intel Xeon Platinum VPS using RAM, context, and tokens per second — not the Hugging Face model card.