diff --git a/Dockerfile b/Dockerfile index 40507c7a..32d3a1c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# --platform=linux/amd64 to avoid 'no match for platform in the manifest' on M1 +# use --platform=linux/amd64 to avoid 'no match for platform in the manifest' on M1 FROM rocker/tidyverse:4 COPY . /cogaps @@ -6,9 +6,15 @@ WORKDIR /cogaps RUN sudo apt-get update -y && \ apt-get upgrade -y && \ - apt-get install libhdf5-dev build-essential patch cmake -y + apt-get install libhdf5-dev build-essential patch -y -RUN Rscript -e 'devtools::install_deps()' +#packages below didn't install with devtools::install_deps, needed BiocManager +RUN Rscript -e 'install.packages("BiocManager");\ + BiocManager::install(c("S4Vectors", "SingleCellExperiment", "SummarizedExperiment", "rhdf5"))' + +#install all other dependencies +RUN Rscript -e 'devtools::install_deps(".", dependencies=TRUE)' + +#need to restart R sometimes https://github.com/r-lib/devtools/issues/2395 +RUN Rscript -e 'devtools::install(".", dependencies=TRUE)' -#https://github.com/r-lib/devtools/issues/2395 -RUN Rscript -e 'devtools::install()' \ No newline at end of file