Update Dockerfile to use Python 3.12 as base image and check Docker image is still working as expected.