From dc96f994df4c21a8e97679929880f91671474bc4 Mon Sep 17 00:00:00 2001 From: Michael Helfrich Date: Mon, 7 Feb 2022 17:56:41 -0500 Subject: [PATCH] Enable support for all locales, but default to US English UTF-8. --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 68e3dee..996f0e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,12 +24,12 @@ RUN apt update && apt install -y --no-install-recommends --allow-unauthenticated && apt autoremove -y \ && rm -rf /var/lib/apt/lists/* -# Set the locale as this is required for Prusaslicer to work. -RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ - locale-gen -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US:en +# Set the locale to US English UTF-8, as this is required for Superslicer to work. We also provide all locales to support all languages. +RUN apt-get update +RUN apt-get install -y locales locales-all ENV LC_ALL en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US.UTF-8 # Install Prusaslicer and its dependencies. # Many of the commands below were derived and pulled from previous work by dmagyar on GitHub.