amd64/Dockerfile: Timezone and locale fixes

Grab lines from my gentoo-utc [1] and gentoo-en-us [2] Dockerfiles
that seem appropriate here.

I'm not sold on the ONBUILD approach, because it seems like it would
be better to build these steps in additional layers (as I do [3]) and
push the resulting images (as I don't).  Then everybody using the
image doesn't have to re-install the Portage tree or rebuild their
locales locally (unless they want to).  I'm not sure how caching works
with ONBUILD either, hopefully they only have to run the ONBUILD
commands once for each local image they base on this one?

[1]: https://github.com/wking/dockerfile/blob/d187ff88a909275afdaefdbabae7dc5a8a3e6165/gentoo-en-us/Dockerfile.template#L28
[2]: https://github.com/wking/dockerfile/blob/d187ff88a909275afdaefdbabae7dc5a8a3e6165/gentoo-utc/Dockerfile.template#L29
[3]: https://github.com/wking/dockerfile/blob/d187ff88a909275afdaefdbabae7dc5a8a3e6165/build.sh#L229
On Thu, Jun 19, 2014 at 09:56:53AM -0700, Ultrabug wrote:
> >  # Finalization
> > +ONBUILD RUN emerge --config sys-libs/timezone-data
> > +ONBUILD RUN echo en_US ISO-8859-1 > /etc/locale.gen
> > +ONBUILD RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
> > +ONBUILD RUN locale-gen
> > +ONBUILD RUN echo 'LANG="en_US.UTF-8"' >> /etc/env.d/02locale
> 
> Isn't the locale a user based config instead ? Why force it ?

So folks don't have to bother?  For the same reason we are setting up
a timezone for them, which is another user-based config where we can
select a reasonably global default.