Migrate away from Docker Hub
FROM ghcr.io/rocker-org/r-ver:4.2
is possible. But it only supports R >= 4.
As far as I know, there is no EOL Debian image on ghcr. We can port the Debian EOL (or at least the default Lenny image) from Dockerhub to ghcr as a service, if needed. (Although I can't imagine a world where Debian is not qualified for the Docker Hub Open Source tier. If Debian isn't qualified for that I don't know what can possible be qualified.)
FROM ghcr.io/rocker-org/r-ver:4.2.2
RUN apt-get update -qq && apt-get install -y libpcre3-dev zlib1g-dev pkg-config libcurl4-openssl-dev && apt-get install -y tcl8.6 tk8.6 tk-table
COPY rang.R ./rang.R
COPY cache ./cache
RUN Rscript rang.R
CMD ["R"]
And yes, it works.
Modified from:
resolve(pkgs = "cran/tcltk2", snapshot_date = "2023-01-01")
https://github.com/debuerreotype/docker-debian-eol-artifacts
https://github.com/debuerreotype/docker-debian-eol-artifacts/blob/dist-lenny/lenny/i386/rootfs.tar.xz
FROM scratch
ADD rootfs.tar.xz /
CMD ["bash"]
FROM scratch
ADD rootfs.tar.xz /
ENV TZ UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt-get update -qq && apt-get install wget locales build-essential r-base-dev -y
COPY rang.R ./rang.R
COPY compile_r.sh ./compile_r.sh
COPY cache ./cache
RUN apt-get update -qq && apt-get install -y libpcre3-dev zlib1g-dev pkg-config libcurl4-openssl-dev
RUN bash compile_r.sh 1.9.1
CMD ["R"]
And it works.
Modified from
resolve(pkgs = "ptproc", snapshot_date = "2004-07-01")
And actually the amd64 image works too.
https://github.com/debuerreotype/docker-debian-eol-artifacts/tree/dist-lenny/lenny/amd64