Skip to content

Commit

Permalink
set locale in Dockerfile to fix char encoding issues
Browse files Browse the repository at this point in the history
see #1
  • Loading branch information
Bernhard B committed Jan 16, 2020
1 parent 44d5b7e commit 487092e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 487092e

Please sign in to comment.