diff --git a/cli/jobs/single-step/r/accidents/docker-context/Dockerfile b/cli/jobs/single-step/r/accidents/docker-context/Dockerfile index ff5326571d6..3a281fe4d1f 100644 --- a/cli/jobs/single-step/r/accidents/docker-context/Dockerfile +++ b/cli/jobs/single-step/r/accidents/docker-context/Dockerfile @@ -4,16 +4,16 @@ FROM rocker/tidyverse:latest RUN apt-get update -qq && \ apt-get install -y python3-pip tcl tk libz-dev libpng-dev -RUN ln -f /usr/bin/python3 /usr/bin/python -RUN ln -f /usr/bin/pip3 /usr/bin/pip +RUN /usr/bin/python3 -m venv /usr/venv/ + +RUN ln -f /usr/venv/python3 /usr/bin/python +RUN ln -f /usr/venv/pip3 /usr/bin/pip # Install azureml-mlflow + RUN pip install azureml-mlflow RUN pip install mlflow -# Create link for python -RUN ln -f /usr/bin/python3 /usr/bin/python - # Install additional R packages RUN R -e "install.packages(c('mlflow'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('carrier'), repos = 'https://cloud.r-project.org/')"