From c06caa95d2d08c080116e5c924b7a5dd9ae088cf Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 10 May 2017 12:47:22 -0700 Subject: [PATCH] Add locales package and only generate locale after adding package (#3756) --- docker/release/ubuntu16.04/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docker/release/ubuntu16.04/Dockerfile b/docker/release/ubuntu16.04/Dockerfile index 3e18b99400..4273166ea8 100644 --- a/docker/release/ubuntu16.04/Dockerfile +++ b/docker/release/ubuntu16.04/Dockerfile @@ -6,20 +6,21 @@ LABEL maintainer="PowerShell Team " LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md" LABEL description="This Dockerfile will install the latest release of PS." -# Setup the locale -ENV LANG en_US.UTF-8 -ENV LC_ALL $LANG -RUN locale-gen $LANG && update-locale - # Install dependencies and clean up RUN apt-get update \ && apt-get install -y --no-install-recommends \ apt-utils \ ca-certificates \ curl \ - apt-transport-https \ + apt-transport-https \ + locales\ && rm -rf /var/lib/apt/lists/* - + +# Setup the locale +ENV LANG en_US.UTF-8 +ENV LC_ALL $LANG +RUN locale-gen $LANG && update-locale + # Import the public repository GPG keys for Microsoft RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -