FROM tomcat:9-jdk17-temurin RUN apt-get update && apt-get install -y \ dirmngr \ gnupg \ apt-transport-https \ ca-certificates \ software-properties-common \ && apt-key adv --keyserver keyserver.ubuntu.com \ --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 \ && add-apt-repository \ 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' \ && apt-get update \ && apt-get install -y r-base \ && rm -rf /var/lib/apt/lists/* LABEL "name"="tomcatR"