From 28871c849dbfa543609f49b77533654460695075 Mon Sep 17 00:00:00 2001 From: Jeff Shepherd Date: Wed, 8 Jan 2025 17:08:27 -0800 Subject: [PATCH] Create venv --- .../single-step/r/accidents/docker-context/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/jobs/single-step/r/accidents/docker-context/Dockerfile b/cli/jobs/single-step/r/accidents/docker-context/Dockerfile index ff5326571d..3a281fe4d1 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/')"