From 487092e6d6a47b88f4472b217d9697ca2a2a8c27 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Thu, 16 Jan 2020 17:17:19 +0100 Subject: [PATCH] set locale in Dockerfile to fix char encoding issues see #1 --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4427febf..7d06f31a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,15 @@ ARG SIGNAL_CLI_VERSION=0.6.5 ENV GIN_MODE=release RUN apt-get update \ - && apt-get install -y --no-install-recommends wget default-jre software-properties-common git \ + && apt-get install -y --no-install-recommends wget default-jre software-properties-common git locales \ && rm -rf /var/lib/apt/lists/* +RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ + dpkg-reconfigure --frontend=noninteractive locales && \ + update-locale LANG=en_US.UTF-8 + +ENV LANG en_US.UTF-8 + RUN cd /tmp/ \ && wget -P /tmp/ https://github.com/AsamK/signal-cli/archive/v${SIGNAL_CLI_VERSION}.tar.gz \ && tar -xvf /tmp/v${SIGNAL_CLI_VERSION}.tar.gz \