The correct solution to the infamous tzdata during Docker build Link to heading

The wrong solution: Link to heading

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

The correct solution: Link to heading

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