From 7243e990ac8ba0e8147fc3ee254cb0722e1ce7ad Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 12:49:42 -0700 Subject: [PATCH] trying it this way --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35ed96b0..6424f075 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,10 @@ FROM debian:9.6-slim LABEL author=frappé # Set locale en_us.UTF-8 for mariadb and general locale data -RUN apt-get update && apt-get install -y --no-install-suggests --no-install-recommends locales \ - && echo "LC_ALL=en_US.UTF-8" >> /etc/environment \ - && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ - && echo "LANG=en_US.UTF-8" > /etc/locale.conf \ - && locale-gen en_US.UTF-8 \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-suggests --no-install-recommends locales \ + && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ + && dpkg-reconfigure --frontend=noninteractive locales \ + && update-locale LANG=en_US.UTF-8 \ && apt-get remove -y locales && apt-get auto-remove -y \ && apt-get clean && rm -rf /var/lib/apt/lists/*