This is a submission for DEV's Summer Bug Smash: Smash Stories powered by Sentry.

The Initial Goal: "Upgrade and Secure"

Like many developers, I recently fell into the trap of assuming that "smaller is always better, and newer is always safer." I decided to upgrade my terminal-based web UI project, py_terminal, to the bleeding-edge python:3.15-rc-alpine Docker base image.

The logic was sound:

Alpine Linux has a much smaller footprint, meaning a smaller attack surface.