From 6630a0e57de4676568232210a32422bfd339c7e2 Mon Sep 17 00:00:00 2001 From: David Coppit Date: Sat, 1 Apr 2017 23:05:27 -0400 Subject: [PATCH] Set the locale to utf-8 Helps programs to deal with non-ascii filenames --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 36f9b0b..105624a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,10 @@ RUN chmod +x /files/runas.sh ADD mapids.sh /files/ RUN chmod +x /files/mapids.sh +# Set the locale, to help Python and the user's applications deal with files that have non-ASCII characters +RUN locale-gen en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + CMD /files/mapids.sh "$UMAP" "$GMAP" && /files/start.sh