klaytonfaria
5/19/2016 - 5:10 PM

Dockerfile to define locale on image

Dockerfile to define locale on image

# 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