set locale in Dockerfile to fix char encoding issues

see #1
This commit is contained in:
Bernhard B
2020-01-16 17:17:19 +01:00
parent 44d5b7e45d
commit 487092e6d6

View File

@@ -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 \