My Dockerfile:
# get shiny server plus tidyverse packages image
FROM us-west1-docker.pkg.dev/my-gcp-project/shiny-verse/shiny-verse:4.3.1
# system libraries of general use
RUN apt-get update && apt-get install -y \
git \
curl \
sudo \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libpq-dev \
libhdf5-dev \
liblzma-dev \
libbz2-dev \
libglpk-dev \
libfftw3-3 \
libmpfr-dev \
## clean up
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# Install renv
RUN R -e "install.packages('renv', repos='http://cran.rstudio.com/')"
# Initialize renv
RUN R -e "renv::init(bare = TRUE)"
RUN R -e "renv::install(c('Seurat@4.3.0'), prompt=FALSE, repos='http://cran.rstudio.com/')"
The error:
55.11 Warning: failed to find source for 'Seurat 4.3.0' in package repositories
55.11 Error: failed to retrieve package 'Seurat@4.3.0'
55.11 Traceback (most recent calls last):
55.11 7: renv::install(c("Seurat@4.3.0"), prompt = FALSE, repos = "http://cran.rstudio.com/")
55.11 6: retrieve(packages)
55.11 5: handler(package, renv_retrieve_impl(package))
55.11 4: renv_retrieve_impl(package)
55.11 3: renv_retrieve_repos(record)
55.11 2: stopf("failed to retrieve package '%s'", renv_record_format_remote(record))
55.11 1: stop(sprintf(fmt, ...), call. = call.)
55.11 Execution halted
------
Dockerfile:34
--------------------
32 | RUN R -e "renv::init(bare = TRUE)"
33 |
34 | >>> RUN R -e "renv::install(c('Seurat@4.3.0'), prompt=FALSE, repos='http://cran.rstudio.com/')"
35 |
36 | # Install R packages required
--------------------
ERROR: failed to solve: process "/bin/sh -c R -e \"renv::install(c('Seurat@4.3.0'), prompt=FALSE, repos='http://cran.rstudio.com/')\"" did not complete successfully: exit code: 1
However, renv::install("Seurat@4.3.0", rebuild=TRUE, repos="http://cran.rstudio.com/")
works without issues on my macbook. Seurat@4.3.0
should work in a standard linux os, right? Any ideas?