From 0754d4fbcdcb10de450bfcdcb0c2035cc40453d5 Mon Sep 17 00:00:00 2001 From: Dimitri Belopopsky Date: Tue, 31 Oct 2023 22:24:25 +0100 Subject: [PATCH] Declare "noninteractive" environment variable globally in Dockerfile (#1020) --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b648ea7d8..af716018d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/ubuntu/.devcontainer/base.Dockerfile +ARG DEBIAN_FRONTEND=noninteractive + # [Choice] Ubuntu version: bionic, focal ARG VARIANT="focal" FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} -# [Optional] Uncomment this section to install additional OS packages. -RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +RUN apt-get update \ && apt-get -y install --no-install-recommends build-essential software-properties-common xz-utils g++ sbcl julia python3 python3-pip python3-dev ghc openjdk-11-jdk libssl-dev gfortran libxml2-dev libyaml-dev libgmp-dev libz-dev libncurses5 gnuplot nodejs npm lua5.3 ocaml php ruby-full gnu-smalltalk scratch libfftw3-dev cmake mono-devel # Setup Crystal @@ -85,7 +86,7 @@ ENV PATH=$PATH:~/swift/usr/bin # Setup viml # To run vim script commands use `/usr/bin/vim -c ":source %" ` -RUN export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends vim +RUN apt-get -y install --no-install-recommends vim # Setup whitespace RUN mkdir -p ~/whitespace && git clone https://github.com/wspace/whitespace-haskell ~/whitespace && cd ~/whitespace && make -B @@ -102,7 +103,7 @@ RUN mkdir -p ~/vlang && wget https://github.com/vlang/v/releases/download/weekly ENV PATH=$PATH:~/vlang/v # Install the packages that needed extra help -RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +RUN apt-get update \ && apt-get -y install --no-install-recommends crystal dart nim powershell scala dotnet-sdk-5.0 r-base racket