-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 1 KB
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ghcr.io/bimberlabinternal/discvr-base:latest
ARG GH_PAT='NOT_SET'
# This should not be cached if the files change
ADD . /cellhashR
RUN cd /cellhashR \
&& if [ "${GH_PAT}" != 'NOT_SET' ];then echo 'Setting GITHUB_PAT to: '${GH_PAT}; export GITHUB_PAT="${GH_PAT}";fi \
# NOTE: remove zarr when this is resolved: https://github.com/laminlabs/lamindb/pull/2334/files
&& python3 -m pip install "zarr>=2.16.0,<3.0.0a0" \
&& Rscript -e "BiocManager::install(ask = F, upgrade = 'always');" \
&& Rscript -e "devtools::install_deps(pkg = '.', dependencies = TRUE, upgrade = 'always');" \
&& R CMD build . \
&& R CMD INSTALL --build *.tar.gz \
# To avoid pthread_create() error. See: https://github.com/bmbolstad/preprocessCore/issues/1 and https://github.com/bmbolstad/preprocessCore/issues/12
&& Rscript -e "remotes::install_github('bmbolstad/preprocessCore', dependencies = T, upgrade = 'always', force = TRUE, configure.args = '--disable-threading')" \
&& rm -Rf /tmp/downloaded_packages/ /tmp/*.rds