From 594719e2b6caa09415940c04831be7be9d891649 Mon Sep 17 00:00:00 2001 From: Docker Library Bot Date: Tue, 20 Dec 2016 14:32:58 -0800 Subject: [PATCH] Run update.sh --- websphere-liberty/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/websphere-liberty/README.md b/websphere-liberty/README.md index a7b658134..a9312617d 100644 --- a/websphere-liberty/README.md +++ b/websphere-liberty/README.md @@ -131,6 +131,18 @@ docker run -d -p 80:9080 -p 443:9443 \ websphere-liberty:javaee7 ``` +## Changing locale + +The base Ubuntu image does not include additional language packs. To use an alternative locale, build your own image that installs the required language pack and then sets the `LANG` environment variable. For example, the following Dockerfile starts with the `websphere-liberty:webProfile7` image, installs the Portuguese language pack, and sets Brazilian Portuguese as the default locale: + +```dockerfile +FROM websphere-liberty:webProfile7 +RUN apt-get update \ + && apt-get install -y language-pack-pt-base \ + && rm -rf /var/lib/apt/lists/* +ENV LANG pt_BR.UTF-8 +``` + # License The Dockerfiles and associated scripts are licensed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).