Skip to content

Commit

Permalink
set locale to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoserrano committed Aug 31, 2023
1 parent 191fba4 commit 07306ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ RUN apt-get update \
ca-certificates-java \
ca-certificates \
curl \
locales \
gnupg-agent \
lsb-release \
software-properties-common

RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1

# Set locale to UTF-8
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
# The locale-gen must be run first to create config files
RUN locale-gen && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
Expand Down

0 comments on commit 07306ca

Please sign in to comment.