For remove this message
debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin:
Change the following:
RUN apt-get update -qq && \ apt-get upgrade -qq -y && \ DEBIAN_FRONTEND=noninteractive apt-get -qq install {YOUR_PACKAGES}
For this:
# Set debconf to run non-interactively ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get -qq install {YOUR_PACKAGES}