-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (17 loc) · 1007 Bytes
/
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
ARG TIDYVERSE_TAG
FROM rocker/tidyverse:${TIDYVERSE_TAG}
COPY rocker_scripts/install_python.sh /rocker_scripts/install_python.sh
RUN /rocker_scripts/install_python.sh
RUN install2.r --error --skipmissing --skipinstalled -n -1 mlflow tidymodels carrier targets DataExplorer assertr ranger
ARG CONDA_VERSION
ARG CONDA_PATH
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh \
&& bash Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh -b -p ${CONDA_PATH} \
&& rm -f Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh
ENV PATH="${CONDA_PATH}/bin:${PATH}"
RUN conda init bash
RUN Rscript -e 'library(mlflow); install_mlflow()'
RUN Rscript -e 'reticulate::conda_install("r-mlflow-1.30.0", c("boto3", "minio", "python-confluent-kafka"))'
RUN apt-get update && apt-get install -y --no-install-recommends libglpk-dev libgmp3-dev libxml2-dev
RUN rm -rf /tmp/downloaded_packages && rm -rf /var/lib/apt/lists/* && strip /usr/local/lib/R/site-library/*/libs/*.so