From 91f49e1efd67d1c3923228e2d0eb0b5286db90a1 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 23 Oct 2019 13:33:53 -0500 Subject: [PATCH] Set SHELL to /bin/bash in Docker Fixes #1081, fixes #918. --- Dockerfile | 3 ++- scripts/ci.dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f47711b9..a6e9c301 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,8 @@ RUN apt-get update && apt-get install -y \ RUN locale-gen en_US.UTF-8 # We cannot use update-locale because docker will not use the env variables # configured in /etc/default/locale so we need to set it manually. -ENV LC_ALL=en_US.UTF-8 +ENV LC_ALL=en_US.UTF-8 \ + SHELL=/bin/bash RUN adduser --gecos '' --disabled-password coder && \ echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd diff --git a/scripts/ci.dockerfile b/scripts/ci.dockerfile index eba212f8..1b41c735 100644 --- a/scripts/ci.dockerfile +++ b/scripts/ci.dockerfile @@ -15,7 +15,8 @@ RUN apt-get update && apt-get install -y \ RUN locale-gen en_US.UTF-8 # We cannot use update-locale because docker will not use the env variables # configured in /etc/default/locale so we need to set it manually. -ENV LC_ALL=en_US.UTF-8 +ENV LC_ALL=en_US.UTF-8 \ + SHELL=/bin/bash RUN adduser --gecos '' --disabled-password coder && \ echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd