This test is performed on native linux, WSL2 with docker-desktop, or mac
Docker: Get Started with Docker
Packer: Installing Packer
I have provided a bash script designed to take care of building all 4 images and outputting the details of size with the docker image command.
$: chmod 700 demo.build.sh flask_demo.build.sh
$: ./demo.build.sh
$: ./flask_demo.build.sh