From 95138e484a82809d256ebf1569f50fa9529009b8 Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Wed, 22 May 2019 09:59:50 -0700 Subject: [PATCH] Set default shell, avoid info messages being sent to stderr --- .devcontainer/Dockerfile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3cd126c..63bdd8c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -8,11 +8,16 @@ FROM rust:1 # Copy endpoint specific user setting overrides into container COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json -RUN rustup update -RUN rustup component add rls rust-analysis rust-src +RUN rustup update 2>&1 +RUN rustup component add rls rust-analysis rust-src 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 # Install other dependencies RUN apt-get install -y lldb-3.9 @@ -20,4 +25,8 @@ RUN apt-get install -y lldb-3.9 # Clean up RUN apt-get autoremove -y \ && apt-get clean -y \ - && rm -rf /var/lib/apt/lists/* \ No newline at end of file + && 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