Skip to content

Commit 76ee4bd

Browse files
committed
Set locale; minor other changes
- Legacy-Id: 19448
1 parent de6cf5b commit 76ee4bd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docker/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ EXPOSE 3306
2323

2424
ENV DEBIAN_FRONTEND=noninteractive
2525
RUN apt-get -y update && \
26+
# apt-get upgrade is normally not a good idea, but this is a dev container
27+
apt-get upgrade && \
2628
# Install all dependencies that are available as packages
2729
apt-get -y install --no-install-recommends \
2830
apache2-utils \
@@ -37,6 +39,7 @@ RUN apt-get -y update && \
3739
graphviz \
3840
libmagic-dev \
3941
libmariadb-dev \
42+
locales \
4043
mariadb-server \
4144
npm \
4245
pigz \
@@ -69,6 +72,12 @@ RUN apt-get -y update && \
6972
apt-get -y clean && \
7073
rm -rf /var/lib/apt/lists/*
7174

75+
# Set locale to en_US.UTF-8
76+
RUN dpkg-reconfigure locales && \
77+
locale-gen en_US.UTF-8 && \
78+
update-locale LC_ALL en_US.UTF-8
79+
ENV LC_ALL en_US.UTF-8
80+
7281
# Install bower
7382
RUN npm install -g bower
7483

@@ -95,6 +104,10 @@ RUN sed -i 's/\[mysqld\]/\[mysqld\]\nperformance_schema=ON/' /etc/mysql/mariadb.
95104
# This is the repo that has the PR:
96105
ADD https://github.com/grooverdan/mariadb-sys/archive/refs/heads/master.zip /
97106
RUN unzip /master.zip
107+
RUN rm /master.zip
108+
109+
# Colorize the bash shell
110+
RUN sed -i 's/#force_color_prompt=/force_color_prompt=/' /root/.bashrc
98111

99112
# Copy the startup file
100113
COPY docker-init.sh /docker-init.sh

0 commit comments

Comments
 (0)