Define locale properly (en_US.UTF-8)
This is required to run the backend tests to avoid problems of
Unicode/Decode on branches with unicode names.
@@ -3,7 +3,9 @@ FROM ubuntu:18.04
ARG GITHUB_TOKEN
ENV DEBIAN_FRONTEND noninteractive
-ENV LANG C.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
WORKDIR /usr/src/app
@@ -16,6 +18,7 @@ RUN apt-get -y install \
libpq-dev \
libxml2-dev \
libxslt1-dev \
+ locales \
build-essential \
python3-pip \
python3-dev \
@@ -25,6 +28,10 @@ RUN apt-get -y install \
libjpeg-dev \
sqlite
+# Uncomment en_US.UTF-8 locale and generate it
+RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
+ locale-gen
+
RUN pip3 install --upgrade pip
RUN mkdir checkouts
