Verified Commit 7758c55d authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Use an UTF-8 locale for easier copy of pad with special characters

parent 7d770057
FROM perl:5-buster
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y install build-essential libssl-dev libio-socket-ssl-perl
RUN apt-get update && apt-get -y install build-essential libssl-dev libio-socket-ssl-perl locales
# Strange enough, the Perl image comes with only POSIX locale installed
# This makes fetching pad with UTF-8 characters very tedious
RUN locale-gen en_US.UTF-8 && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN cpan Carton
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment