The wrong solution:

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y tzdata ...

The correct solution:

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata ...