Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare "noninteractive" environment variable globally in Dockerfile #1020

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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