Skip to content

Commit 9351d84

Browse files
committed
use binaries from r-universe if possible
1 parent 1bb8eb7 commit 9351d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
2020
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
2121
&& apt -y build-dep r-base-dev \
2222
&& apt -y install r-base-dev \
23-
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \
24-
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')" \
23+
&& Rscript -e "install.packages(c('languageserver', 'httpgd'), \
24+
repos = c(runiverse='https://r-universe.dev', CRAN='https://cloud.r-project.org'))" \
2525
&& rm -rf /var/lib/apt/lists/*
2626

2727
ARG CONTAINER_VERSION

0 commit comments

Comments
 (0)