diff --git a/README.adoc b/README.adoc index e496bb8..25a0d98 100644 --- a/README.adoc +++ b/README.adoc @@ -41,4 +41,5 @@ RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet games-misc/cowsay # Final image. FROM scratch COPY --from=build /workdir / +ENV LANG "en_DK.utf8" -------------------------------------------------------------------------------- diff --git a/gentoo-base.Dockerfile b/gentoo-base.Dockerfile index f41accf..df6f34f 100644 --- a/gentoo-base.Dockerfile +++ b/gentoo-base.Dockerfile @@ -16,8 +16,10 @@ RUN echo 'USE="minimal -berkdb -cracklib -gdbm -gpg -ncurses -nls \ RUN eselect profile set default/linux/amd64/17.1 RUN quickpkg --include-config=y @world sys-libs/glibc RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet sys-apps/portage +# Needed for locale generation. +RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet \ + sys-apps/grep sys-apps/gawk app-arch/gzip RUN cp /etc/portage/make.conf /workdir/etc/portage/make.conf -RUN rm -r /workdir/usr/share/{i18n,locale,zoneinfo} # Final image. FROM scratch @@ -26,3 +28,6 @@ LABEL description="My base for Gentoo images (Without build dependencies)." COPY --from=build /workdir / RUN echo 'portage:x:250:250:portage:/var/tmp/portage:/bin/false' >> /etc/passwd RUN echo 'portage::250:portage' >> /etc/group +RUN echo 'en_DK.UTF-8 UTF-8' > /etc/locale.gen +RUN locale-gen +RUN eselect locale set en_DK.utf8