forked from aoliver44/taxaHFE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
36 lines (27 loc) · 1.18 KB
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Author: Andrew Oliver
## Version: aoliver44/leakage_free_taxaHFE:latest
## Date: Jan 25, 2023
## base image to start with
FROM rocker/r-ver:4.2.3
## RENV version
ENV RENV_VERSION=0.16.0
RUN apt update
# install some things that R needs
RUN apt install -y libz-dev libxml2-dev
# install RENV, which will then install all R project packages
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))"
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')"
# should be in the same directocat ry as this file
COPY renv.lock ./
RUN R -e 'renv::consent(provided = TRUE)'
RUN R -e 'renv::restore()'
# copy in scripts so they are part of container
COPY ./taxaHFE-ML/leakfree_taxaHFE.R ./scripts/taxaHFE-ML
COPY ./taxaHFE-ML/dietML.R ./scripts/dietML.R
COPY ./tree.R ./scripts/tree.R
COPY ./run_taxaHFEv2.R ./scripts/taxaHFE
COPY ./taxaHFE-ML/models/dietML_ranger_tidy.R ./scripts/models/dietML_ranger_tidy.R
COPY ./taxaHFE-ML/models/dietML_null_tidy.R ./scripts/models/dietML_null_tidy.R
COPY ./taxaHFE-ML/utilities/shap_figures.R ./scripts/utilities/shap_figures.R
COPY ./taxaHFE-ML/utilities/vip_basic.R ./scripts/utilities/vip_basic.R
ENV PATH="${PATH}:/scripts/"