{"action":"opened","issue":{"url":"https://api.github.com/repos/phusion/baseimage-docker/issues/276","labels_url":"https://api.github.com/repos/phusion/baseimage-docker/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/phusion/baseimage-docker/issues/276/comments","events_url":"https://api.github.com/repos/phusion/baseimage-docker/issues/276/events","html_url":"https://github.com/phusion/baseimage-docker/issues/276","id":125378976,"number":276,"title":"locale setting for debian","user":{"login":"emfox","id":4089099,"avatar_url":"https://avatars.githubusercontent.com/u/4089099?v=3","gravatar_id":"","url":"https://api.github.com/users/emfox","html_url":"https://github.com/emfox","followers_url":"https://api.github.com/users/emfox/followers","following_url":"https://api.github.com/users/emfox/following{/other_user}","gists_url":"https://api.github.com/users/emfox/gists{/gist_id}","starred_url":"https://api.github.com/users/emfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emfox/subscriptions","organizations_url":"https://api.github.com/users/emfox/orgs","repos_url":"https://api.github.com/users/emfox/repos","events_url":"https://api.github.com/users/emfox/events{/privacy}","received_events_url":"https://api.github.com/users/emfox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-07T11:47:08Z","updated_at":"2016-01-07T11:47:08Z","closed_at":null,"body":"I know it's a ubuntu image, but I'd like to use it for debian too, by replacing 'FROM ubuntu:14.04' to 'FROM debian:jessie' in Dockerfile, everything works except locales while buidling, so I changed it a bit and all ok (of course should alter sources.list too, ignore it).\r\nI'm not very clear if it's a correct way but it do works, could you intergrate this little change?\r\n\r\n```\r\ndiff --git a/image/prepare.sh b/image/prepare.sh\r\nindex f0512d4..b8873b2 100755\r\n--- a/image/prepare.sh\r\n+++ b/image/prepare.sh\r\n@@ -16,8 +16,7 @@ mkdir -p /etc/container_environment\r\n echo -n no > /etc/container_environment/INITRD\r\n\r\n ## Enable Ubuntu Universe and Multiverse.\r\n-sed -i 's/^#\\s*\\(deb.*universe\\)$/\\1/g' /etc/apt/sources.list\r\n-sed -i 's/^#\\s*\\(deb.*multiverse\\)$/\\1/g' /etc/apt/sources.list\r\n+echo 'deb http://mirrors.163.com/debian jessie main' > /etc/apt/sources.list\r\n apt-get update\r\n\r\n ## Fix some issues with APT packages.\r\n@@ -42,7 +41,8 @@ $minimal_apt_get_install software-properties-common\r\n apt-get dist-upgrade -y --no-install-recommends\r\n\r\n ## Fix locale.\r\n-$minimal_apt_get_install language-pack-en\r\n+$minimal_apt_get_install locales\r\n+echo \"en_US.UTF-8 UTF-8\" >> /etc/locale.gen\r\n locale-gen en_US\r\n update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8\r\n echo -n en_US.UTF-8 > /etc/container_environment/LANG\r\n```"}}