From bb3fef5377e3a4a99215eeef0f74c0156faed00d Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 6 Sep 2016 13:04:03 +0200 Subject: [PATCH] Expose the locales in Dockerfile While the locales are generated with locale-gen, this does not enforce the en_US.UTF-8 locale inside the container. See the following links for more information: - https://github.com/docker/docker/issues/2424 - http://jaredmarkell.com/docker-and-locales/ --- image/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image/Dockerfile b/image/Dockerfile index d543b36..e1a1fa4 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -9,4 +9,8 @@ RUN /bd_build/prepare.sh && \ /bd_build/fix_pam_bug.sh && \ /bd_build/cleanup.sh +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + CMD ["/sbin/my_init"]