Skip to content

Commit

Permalink
Merge pull request #121 from FertigLab/119-build-container-on-merge-t…
Browse files Browse the repository at this point in the history
…o-main

119 build container on merge to main
  • Loading branch information
dimalvovs authored Oct 8, 2024
2 parents b8d412d + 140a721 commit 6a0d182
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# use --platform=linux/amd64 to avoid 'no match for platform in the manifest' on M1
FROM rocker/tidyverse:4

COPY . /cogaps
WORKDIR /cogaps

RUN sudo apt-get update -y && \
apt-get upgrade -y && \
apt-get install libhdf5-dev build-essential patch -y

#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)'

0 comments on commit 6a0d182

Please sign in to comment.