From 9582bbd811c36ebf6ff399465e4b6a1208058229 Mon Sep 17 00:00:00 2001 From: Armin Friedl Date: Thu, 21 May 2020 13:49:02 +0200 Subject: [PATCH] Don't show interactive dialogs Without DEBIAN_FRONTEND set to noninteractive, any apt-install might show an interactive dialog and hence hangs. Fixes output like this: ``` Setting up tzdata (2020a-0ubuntu0.20.04) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc 2. America 5. Arctic 8. Europe 11. SystemV 3. Antarctica 6. Asia 9. Indian 12. US ``` Signed-off-by: Armin Friedl --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4a28c8e..02f7998 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ FROM ubuntu:rolling +# Needed to prevent ubuntu from showing interactive +# dialog when e.g. installing tzdata +ARG DEBIAN_FRONTEND=noninteractive + RUN apt-get update -y && apt-get upgrade -y && apt-get install -y\ # Base dependencies for: `git push` xwim build ## meson/build essentials