From 80844371408d357688fe0ee16b55f246703ecc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Y=C3=BCcel?= Date: Wed, 28 Jun 2017 18:05:04 +0200 Subject: [PATCH] fix locale warning during docker build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /usr/share/locale/locale.alias is a symlink to /etc/locale.alias and needed by locale-gen. /usr/share/locale/locale.alias gets normally installed by locale package but is filtered in jessie-slim, so re-add the symlink. Signed-off-by: Mustafa YĆ¼cel --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02f5a1d..4cd9a52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ FROM debian:jessie-slim ENV LOCALE=en_US.UTF-8 RUN apt-get update && \ apt-get install --no-install-recommends -y locales && \ - sed -i -e "s/# $LOCALE.*/$LOCALE UTF-8/" /etc/locale.gen && \ + sed -i -e "s/# $LOCALE/$LOCALE/" /etc/locale.gen && \ + ln -s /etc/locale.alias /usr/share/locale/locale.alias && \ dpkg-reconfigure --frontend=noninteractive locales && \ apt-get install --no-install-recommends -y \ gawk wget git-core diffstat unzip file \