Here's my Dockerfile for the latest Ubuntu 18.04 LTS distro, adapted from the answer by @NilsBallmann. I also removed temp file creation and compacted the package installation into a single layer:
FROM ubuntu:bionic
RUN export DEBIAN_FRONTEND=noninteractive; \
export DEBCONF_NONINTERACTIVE_SEEN=true; \
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
apt-get update -qqy \
&& apt-get install -qqy --no-install-recommends \
tzdata \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*