From 890880c91383675a0364aa405cbb96befc4290fa Mon Sep 17 00:00:00 2001 From: Lonnie Liu <95255098+aslonnie@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:17:43 -0700 Subject: [PATCH] [docker] drop python minor version (#36907) we no longer support python 3.6 anymore Signed-off-by: Lonnie Liu Signed-off-by: e428265 --- docker/ray-ml/Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docker/ray-ml/Dockerfile b/docker/ray-ml/Dockerfile index 72949a1a2374..1667dcf787f3 100644 --- a/docker/ray-ml/Dockerfile +++ b/docker/ray-ml/Dockerfile @@ -1,6 +1,5 @@ ARG BASE_IMAGE FROM rayproject/ray:nightly"$BASE_IMAGE" -ARG PYTHON_MINOR_VERSION=7 # We have to uninstall wrapt this way for Tensorflow compatibility COPY requirements.txt ./ @@ -39,11 +38,7 @@ RUN sudo apt-get update \ && $HOME/anaconda3/bin/pip --no-cache-dir install -U \ -c requirements.txt \ -r requirements_ml_docker.txt \ - # Remove dataclasses & typing because they are included in Python > 3.6 - && if [ $(python -c 'import sys; print(sys.version_info.minor)') != "6" ]; then \ - $HOME/anaconda3/bin/pip uninstall dataclasses typing -y; fi \ - && sudo rm \ - requirements*.txt \ + && sudo rm requirements*.txt \ && sudo apt-get clean RUN $HOME/anaconda3/bin/pip freeze > /home/ray/pip-freeze.txt