From 3bbb5b5d20a795814c1ca7177ae6069083babcad Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 12:30:34 -0700 Subject: [PATCH] lets try doing locales like this --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 493747cb..b615f62f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,21 +4,25 @@ 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 \ + && apt-get remove locales && apt-get auto-remove \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + ENV PYTHONIOENCODING=utf-8 ENV LANGUAGE=en_US.UTF-8 ENV LANG=en_US.UTF-8 ENV LC_ALL=en_US.UTF-8 # Install all neccesary packages -RUN apt-get update && apt-get install -y --no-install-suggests --no-install-recommends build-essential cron curl git locales \ +RUN apt-get update && apt-get install -y --no-install-suggests --no-install-recommends build-essential cron curl git \ libffi-dev liblcms2-dev libldap2-dev libmariadbclient-dev libsasl2-dev libssl-dev libtiff5-dev libwebp-dev mariadb-client \ iputils-ping python-dev python-pip python-setuptools python-tk redis-tools rlwrap software-properties-common sudo tk8.6-dev \ vim xfonts-75dpi xfonts-base wget wkhtmltopdf \ && apt-get clean && rm -rf /var/lib/apt/lists/* \ - && 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 \ && curl https://deb.nodesource.com/node_10.x/pool/main/n/nodejs/nodejs_10.10.0-1nodesource1_amd64.deb > node.deb \ && dpkg -i node.deb \ && rm node.deb \