forked from Docker/baseimage-docker
build-arg to define base-image, fix locale for Debian
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
FROM ubuntu:18.04
|
||||
ARG BASE_IMAGE
|
||||
FROM $BASE_IMAGE
|
||||
MAINTAINER Phusion <info@phusion.nl>
|
||||
|
||||
COPY . /bd_build
|
||||
|
||||
@@ -41,7 +41,16 @@ $minimal_apt_get_install software-properties-common
|
||||
apt-get dist-upgrade -y --no-install-recommends -o Dpkg::Options::="--force-confold"
|
||||
|
||||
## Fix locale.
|
||||
$minimal_apt_get_install language-pack-en
|
||||
case $(lsb_release -is) in
|
||||
Ubuntu)
|
||||
$minimal_apt_get_install language-pack-en
|
||||
;;
|
||||
Debian)
|
||||
$minimal_apt_get_install locales locales-all
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
locale-gen en_US
|
||||
update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
|
||||
echo -n en_US.UTF-8 > /etc/container_environment/LANG
|
||||
|
||||
Reference in New Issue
Block a user