Switch to a lighter, more recent Python 3.12-slim base image to reduce image size and leverage the latest Python features and improvements. This change removes the need for additional locale configuration, simplifying the Dockerfile.