From 0257f02ad0ef44e07cad4669265b6f2c75e3a398 Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Wed, 22 May 2019 08:37:32 -0700 Subject: [PATCH] Set default shell, avoid dpkg warnings --- .devcontainer/Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8cd08d4..84abc4a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -5,10 +5,19 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.1 -# Install git, process tools -RUN apt-get update && apt-get -y install git procps +# Configure apt +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get -y install --no-install-recommends apt-utils 2>&1 + +# Install git, process tools, lsb-release (common in install instructions for CLIs) +RUN apt-get -y install git procps lsb-release # Clean up RUN apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog + +# Set the default shell to bash rather than sh +ENV SHELL /bin/bash \ No newline at end of file