Skip to content

Commit 91f49e1

Browse files
committed
Set SHELL to /bin/bash in Docker
Fixes #1081, fixes #918.
1 parent eea9c16 commit 91f49e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ RUN apt-get update && apt-get install -y \
3838
RUN locale-gen en_US.UTF-8
3939
# We cannot use update-locale because docker will not use the env variables
4040
# configured in /etc/default/locale so we need to set it manually.
41-
ENV LC_ALL=en_US.UTF-8
41+
ENV LC_ALL=en_US.UTF-8 \
42+
SHELL=/bin/bash
4243

4344
RUN adduser --gecos '' --disabled-password coder && \
4445
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd

scripts/ci.dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ RUN apt-get update && apt-get install -y \
1515
RUN locale-gen en_US.UTF-8
1616
# We cannot use update-locale because docker will not use the env variables
1717
# configured in /etc/default/locale so we need to set it manually.
18-
ENV LC_ALL=en_US.UTF-8
18+
ENV LC_ALL=en_US.UTF-8 \
19+
SHELL=/bin/bash
1920

2021
RUN adduser --gecos '' --disabled-password coder && \
2122
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd

0 commit comments

Comments
 (0)