Skip to content

Commit

Permalink
Declare "noninteractive" environment variable globally in Dockerfile (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMitia committed Oct 31, 2023
1 parent c3311b6 commit 0754d4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -85,7 +86,7 @@ ENV PATH=$PATH:~/swift/usr/bin

# Setup viml
# To run vim script commands use `/usr/bin/vim -c ":source %" <path_to_file>`
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
Expand All @@ -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


Expand Down

0 comments on commit 0754d4f

Please sign in to comment.