I had the same problem, and I used this in my Dockerfile:
Dockerfile
ARG DEBIAN_FRONTEND=noninteractiveENV TZ=Europe/LondonRUN apt-get install -y python3-tk
This is based on this answer: How to install tzdata on a ubuntu docker image?