- Add LANG, LANGUAGE & LOCALTIME build args,
- Set by default laguage to en_US.UTF-8 & timezone to Europe/Paris.
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -3,15 +3,21 @@
|
||||
|
||||
FROM mageia:9
|
||||
|
||||
RUN urpmi.removemedia -a \
|
||||
ARG LANG
|
||||
ARG LANGUAGE
|
||||
ARG LOCALTIME
|
||||
|
||||
|
||||
RUN echo -e "LANG=${LANG}\nLANGUAGE=${LANGUAGE}" >/etc/locale.conf \
|
||||
&& ln -s /usr/share/zoneinfo/${LOCALTIME} /etc/localtime \
|
||||
&& urpmi.removemedia -a \
|
||||
&& urpmi.addmedia --distrib http://ftp.free.fr/mirrors/mageia.org/distrib/9/x86_64 \
|
||||
&& urpmi.update --no-ignore "Nonfree Release" "Nonfree Updates" "Tainted Release" "Tainted Updates" \
|
||||
&& urpmi.update -a \
|
||||
&& urpmi --force --auto-update \
|
||||
&& urpmi --force --replacepkgs glibc locales locales-en \
|
||||
&& rm -f /var/log/dnf* /var/log/hawkey.log \
|
||||
&& echo -e "LANG=en_US.UTF-8\nLANGUAGE=en_US.UTF-8:en_US:en" >/etc/locale.conf \
|
||||
&& echo -e "export PAGER=less\nexport MANPAGER='less -isr'\nexport EDITOR=emacs\nalias ll='ls -la'\nalias em='emacs'" >/etc/profile.d/rx3.sh
|
||||
&& urpmi --force --auto-update \
|
||||
&& rm -f /var/log/dnf* /var/log/hawkey.log \
|
||||
&& echo -e "export PAGER=less\nexport MANPAGER='less -isr'\nexport EDITOR=emacs\nalias ll='ls -la'\nalias em='emacs'" >/etc/profile.d/rx3.sh
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +33,7 @@ LABEL org.rx3.${IMG_ID}.version=${IMG_VERSION}
|
||||
LABEL org.rx3.${IMG_ID}.maintainer=${IMG_MAINTAINER}
|
||||
LABEL maintainer=${IMG_MAINTAINER}
|
||||
|
||||
|
||||
COPY --from=0 / /
|
||||
|
||||
ENTRYPOINT ["sleep", "60m"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user