12345678910111213141516171819202122232425262728293031 |
- FROM tomcat:9-jdk17-temurin-focal
- ARG USER_ID
- ARG GROUP_ID
- RUN apt-get update && apt-get install -y sudo;
- RUN addgroup --gid ${GROUP_ID} 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
- RUN sudo apt-get update && sudo apt-get install -y \
- dirmngr \
- gnupg \
- apt-transport-https \
- ca-certificates \
- software-properties-common \
- && sudo apt-key adv --keyserver keyserver.ubuntu.com \
- --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 \
- && sudo add-apt-repository \
- 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' \
- && sudo apt-get update \
- && sudo apt-get install -y r-base \
- && sudo rm -rf /var/lib/apt/lists/*
- USER root
- LABEL "name"="tomcatR"
|