Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM eclipse-temurin:17.0.14_7-jdk-jammy
  2. #possible eclipse-temurin:17.0.13_11-jdk-jammy
  3. #possible eclipse-temurin:17-jdk-jammy
  4. ARG USER_ID
  5. ARG GROUP_ID
  6. ARG LABKEY_HOME
  7. ARG JAVA_FLAGS
  8. RUN apt-get update && apt-get install -y sudo;
  9. RUN addgroup --gid ${GROUP_ID} labkey
  10. #assume /home/labkey as home directory for labkey
  11. RUN adduser --gecos 'LabKey' --uid ${USER_ID} --gid ${GROUP_ID} --disabled-password labkey
  12. RUN echo 'labkey ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
  13. RUN usermod -G root,sudo labkey
  14. USER labkey
  15. #replace focal with jammy in deb
  16. ARG RKEY=https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc
  17. ARG GPGKEY=/etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
  18. RUN sudo apt-get update && sudo apt-get install -y \
  19. dirmngr \
  20. gnupg \
  21. apt-transport-https \
  22. ca-certificates \
  23. software-properties-common \
  24. && wget -qO- $RKEY | sudo tee -a $GPGKEY\
  25. && sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/"\
  26. && sudo apt-get update --fix-missing\
  27. && sudo apt-get install -y r-base \
  28. && sudo rm -rf /var/lib/apt/lists/*
  29. #RUN sudo systemctl daemon-reload
  30. WORKDIR /home/labkey
  31. ENV LABKEY_HOME=/home/labkey JAVA_FLAGS=${JAVA_FLAGS}
  32. CMD java ${JAVA_FLAGS} -jar /home/labkey/labkeyServer.jar
  33. #CMD echo ${JAVA_FLAGS}
  34. LABEL "name"="eclipse-temurinR"