|
@@ -12,17 +12,17 @@ RUN usermod -G root,sudo labkey
|
|
|
|
|
|
USER labkey
|
|
|
|
|
|
+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 \
|
|
|
- && 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 \
|
|
|
+ && wget -qO- $RKEY | sudo tee -a $GPGKEY\
|
|
|
+ && sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/"\
|
|
|
+ && sudo apt-get update --fix-missing\
|
|
|
&& sudo apt-get install -y r-base \
|
|
|
&& sudo rm -rf /var/lib/apt/lists/*
|
|
|
|