gentoo-base: Add and set locale: en_DK.UTF-8.
This commit is contained in:
parent
e6602217a7
commit
716f92551f
|
@ -41,4 +41,5 @@ RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet games-misc/cowsay
|
||||||
# Final image.
|
# Final image.
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /workdir /
|
COPY --from=build /workdir /
|
||||||
|
ENV LANG "en_DK.utf8"
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
|
@ -16,8 +16,10 @@ RUN echo 'USE="minimal -berkdb -cracklib -gdbm -gpg -ncurses -nls \
|
||||||
RUN eselect profile set default/linux/amd64/17.1
|
RUN eselect profile set default/linux/amd64/17.1
|
||||||
RUN quickpkg --include-config=y @world sys-libs/glibc
|
RUN quickpkg --include-config=y @world sys-libs/glibc
|
||||||
RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet sys-apps/portage
|
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 cp /etc/portage/make.conf /workdir/etc/portage/make.conf
|
||||||
RUN rm -r /workdir/usr/share/{i18n,locale,zoneinfo}
|
|
||||||
|
|
||||||
# Final image.
|
# Final image.
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
@ -26,3 +28,6 @@ LABEL description="My base for Gentoo images (Without build dependencies)."
|
||||||
COPY --from=build /workdir /
|
COPY --from=build /workdir /
|
||||||
RUN echo 'portage:x:250:250:portage:/var/tmp/portage:/bin/false' >> /etc/passwd
|
RUN echo 'portage:x:250:250:portage:/var/tmp/portage:/bin/false' >> /etc/passwd
|
||||||
RUN echo 'portage::250:portage' >> /etc/group
|
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
|
||||||
|
|
Loading…
Reference in New Issue