Skip to content

Commit 0754d4f

Browse files
authored
Declare "noninteractive" environment variable globally in Dockerfile (#1020)
1 parent c3311b6 commit 0754d4f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/ubuntu/.devcontainer/base.Dockerfile
22

3+
ARG DEBIAN_FRONTEND=noninteractive
4+
35
# [Choice] Ubuntu version: bionic, focal
46
ARG VARIANT="focal"
57
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
68

7-
# [Optional] Uncomment this section to install additional OS packages.
8-
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
RUN apt-get update \
910
&& 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
1011

1112
# Setup Crystal
@@ -85,7 +86,7 @@ ENV PATH=$PATH:~/swift/usr/bin
8586

8687
# Setup viml
8788
# To run vim script commands use `/usr/bin/vim -c ":source %" <path_to_file>`
88-
RUN export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends vim
89+
RUN apt-get -y install --no-install-recommends vim
8990

9091
# Setup whitespace
9192
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
102103
ENV PATH=$PATH:~/vlang/v
103104

104105
# Install the packages that needed extra help
105-
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
106+
RUN apt-get update \
106107
&& apt-get -y install --no-install-recommends crystal dart nim powershell scala dotnet-sdk-5.0 r-base racket
107108

108109

0 commit comments

Comments
 (0)