As said here , the secret is that dpkg-reconfigure tzdata simply creates /etc/localtime as a copy, hardlink or symlink (preferred symbolic link) to a file in /usr/share/zoneinfo . Thus, this can be done completely from your Docker file. Consider:
ENV TZ=America/Los_Angeles RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
And as a bonus, TZ will also be correctly installed in the container.
It is also an agnostic distribution, so it works with almost all Linux.
source share