Created
May 19, 2016 17:10
-
-
Save klaytonfaria/6c474dc6461b161ea6e3fe3889f00c22 to your computer and use it in GitHub Desktop.
Dockerfile to define locale on image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set default locale for the environment | |
RUN apt-get update && apt-get install -y locales | |
RUN dpkg-reconfigure locales && \ | |
locale-gen C.UTF-8 && \ | |
/usr/sbin/update-locale LANG=C.UTF-8 | |
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \ | |
locale-gen | |
ENV LC_ALL C.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LANGUAGE en_US.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment