forked from Docker/baseimage-docker
The official Debian images differ from the Ubuntu ones in ways that break image/prepare.sh. Install python3 explicitly (my_init is a Python 3 script, and the Debian images do not ship python3), restrict software-properties-common to Ubuntu since Trixie does not provide it, and detect the distribution from /etc/os-release instead of lsb_release, which is not installed on Debian.