From 3bbb5b5d20a795814c1ca7177ae6069083babcad Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 12:30:34 -0700 Subject: [PATCH 1/6] 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 \ From a9784805d89251d0f2f06e251919a3fe63ec63a0 Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 12:35:03 -0700 Subject: [PATCH 2/6] forgot the -y... --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b615f62f..35ed96b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-suggests --no-install-reco && 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 remove -y locales && apt-get auto-remove -y \ && apt-get clean && rm -rf /var/lib/apt/lists/* ENV PYTHONIOENCODING=utf-8 From 7243e990ac8ba0e8147fc3ee254cb0722e1ce7ad Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 12:49:42 -0700 Subject: [PATCH 3/6] 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/* From 5764b22856a804896dae5520d844a9f7e204368e Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 13:00:04 -0700 Subject: [PATCH 4/6] and if we dont remove it? --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6424f075..ef0313b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,6 @@ LABEL author=frappé 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/* ENV PYTHONIOENCODING=utf-8 From 8040ac3d3ae56eda824980df1380edd3c0ac4a7a Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Wed, 17 Apr 2019 14:59:35 -0700 Subject: [PATCH 5/6] what about like this? --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef0313b5..770dae5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,16 @@ FROM debian:9.6-slim LABEL author=frappé # Set locale en_us.UTF-8 for mariadb and general locale data -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 \ - && 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 \ +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 \ + && 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 \ From 1f39396ce96a36dbbb1bf3438797a153c244ce8f Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Fri, 28 Jun 2019 15:08:51 -0400 Subject: [PATCH 6/6] I wonder... --- Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 770dae5e..3ecd4bb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,11 @@ FROM debian:9.6-slim LABEL author=frappé +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 \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + # Set locale en_us.UTF-8 for mariadb and general locale data ENV PYTHONIOENCODING=utf-8 ENV LANGUAGE=en_US.UTF-8 @@ -10,13 +15,10 @@ ENV LANG=en_US.UTF-8 ENV LC_ALL=en_US.UTF-8 # Install all neccesary packages -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 \ - && 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 \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive 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/* \ && 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 \