Mémo pour configurer correctement l’utf-8 dans le Dockerfile.
Source : https://hub.docker.com/r/pfcarrier/debian-locale/~/dockerfile/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM debian:jessie MAINTAINER Pierre Fortin Carrier pierre.fortincarrier@gmail.com> ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -y locales ## Set LOCALE to UTF8 # RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ locale-gen en_US.UTF-8 && \ dpkg-reconfigure locales && \ /usr/sbin/update-locale LANG=en_US.UTF-8 ENV LC_ALL en_US.UTF-8 |