title: The local does not work with docker and the openjdk image
body: <p>I found that my locale did not work on my production server.</p>
  <p>I had put this image and the internalization worked:</p>
  <pre><code>FROM ubuntu:latest
  ENV DEBIAN_FRONTEND noninteractive
  
  RUN apt-get -y update
  RUN apt-get -y upgrade
  
  RUN apt-get install -y locales
  RUN sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen
  RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen
  
  RUN dpkg-reconfigure --frontend=noninteractive locales
  RUN update-locale LANG=ru_RU.UTF-8
  RUN update-locale LANG=fr_FR.UTF-8
  
  ENV LANG ru_RU.UTF-8
  ENV LANGUAGE ru_RU:ru
  ENV LC_ALL ru_RU.UTF-8
  
  ENV LANG fr_FR.UTF-8
  ENV LANGUAGE fr_FR:fr
  ENV LC_ALL fr_FR.UTF-8
  
  RUN apt-get install -y openjdk-11-jdk
  
  ARG JAR_FILE=target/*.jar
  COPY ${JAR_FILE} app.jar
  ENTRYPOINT [&quot;java&quot;,&quot;-Dspring.profiles.active=prod&quot;,&quot;-jar&quot;,&quot;/app.jar&quot;]
  </code></pre>
  <p>but I want to simplify my image:</p>
  <pre><code>FROM openjdk:11
  
  ENV TZ=Europe/Paris
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; echo $TZ &gt; /etc/timezone
  
  ENV LANG fr_FR.UTF-8
  ENV LANGUAGE fr_FR:fr
  ENV LC_ALL fr_FR.UTF-8
  COPY target/*.jar /app.jar
  ENTRYPOINT [&quot;java&quot;,&quot;-Dspring.profiles.active=prod&quot;,&quot;-jar&quot;,&quot;/app.jar&quot;]
  </code></pre>
  <p>but I do not understand because on my spring boot pplication the local fr does not work.</p>
  <p>I have messages.properties and messges_en.properties.</p>
  <p>The local en works but not the fr.
  Thanks for your help</p>