2024-08-21 12:22:12 +02:00
|
|
|
# Base Mageia9 Rx3 Docker Image
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
FROM mageia:9
|
|
|
|
|
|
|
|
RUN 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 \
|
2024-08-22 12:44:49 +02:00
|
|
|
&& urpmi --force --auto-update \
|
2024-08-21 12:22:12 +02:00
|
|
|
&& 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
|
|
|
|
|
2024-08-22 12:44:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
ARG IMG_ID
|
|
|
|
ARG IMG_NAME
|
|
|
|
ARG IMG_VERSION
|
|
|
|
ARG IMG_MAINTAINER
|
|
|
|
|
|
|
|
LABEL org.rx3.${IMG_ID}.name=${IMG_NAME}
|
|
|
|
LABEL org.rx3.${IMG_ID}.version=${IMG_VERSION}
|
|
|
|
LABEL org.rx3.${IMG_ID}.maintainer=${IMG_MAINTAINER}
|
|
|
|
LABEL maintainer=${IMG_MAINTAINER}
|
|
|
|
|
|
|
|
COPY --from=0 / /
|
|
|
|
|
2024-08-21 12:22:12 +02:00
|
|
|
ENTRYPOINT ["sleep", "60m"]
|
2024-08-22 12:44:49 +02:00
|
|
|
|