FROM eclipse-temurin:17.0.14_7-jdk-jammy #possible eclipse-temurin:17.0.13_11-jdk-jammy #possible eclipse-temurin:17-jdk-jammy ARG USER_ID ARG GROUP_ID ARG LABKEY_HOME ARG JAVA_FLAGS RUN apt-get update && apt-get install -y sudo; RUN addgroup --gid ${GROUP_ID} labkey #assume /home/labkey as home directory for labkey RUN adduser --gecos 'LabKey' --uid ${USER_ID} --gid ${GROUP_ID} --disabled-password labkey RUN echo 'labkey ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN usermod -G root,sudo labkey USER labkey #replace focal with jammy in deb ARG RKEY=https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc ARG GPGKEY=/etc/apt/trusted.gpg.d/cran_ubuntu_key.asc RUN sudo apt-get update && sudo apt-get install -y \ dirmngr \ gnupg \ apt-transport-https \ ca-certificates \ software-properties-common \ && wget -qO- $RKEY | sudo tee -a $GPGKEY\ && sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/"\ && sudo apt-get update --fix-missing\ && sudo apt-get install -y r-base \ && sudo rm -rf /var/lib/apt/lists/* #RUN sudo systemctl daemon-reload WORKDIR /home/labkey ENV LABKEY_HOME=/home/labkey JAVA_FLAGS=${JAVA_FLAGS} CMD java ${JAVA_FLAGS} -jar /home/labkey/labkeyServer.jar #CMD echo ${JAVA_FLAGS} LABEL "name"="eclipse-temurinR"