From 148e67cf4d3ec26af8bb3ef0e099518d86856d1f Mon Sep 17 00:00:00 2001 From: Lauren Date: Sun, 21 Apr 2024 18:21:02 -0700 Subject: [PATCH] enforce python version --- torchserve/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/torchserve/Dockerfile b/torchserve/Dockerfile index e02861e9..f96b10c6 100644 --- a/torchserve/Dockerfile +++ b/torchserve/Dockerfile @@ -8,7 +8,6 @@ RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ ca-certificates \ curl \ - python3-pip \ vim \ sudo \ default-jre \ @@ -17,6 +16,9 @@ RUN apt-get update && \ build-essential \ && rm -rf /var/lib/apt/lists/* +RUN conda install python=3.8.13 -y + + # install python dependencies RUN pip install openmim RUN pip install torch==2.0.0