Skip to content

Commit

Permalink
[docker] drop python minor version (ray-project#36907)
Browse files Browse the repository at this point in the history
we no longer support python 3.6 anymore

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
  • Loading branch information
aslonnie authored and arvind-chandra committed Aug 31, 2023
1 parent 4b93750 commit 890880c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docker/ray-ml/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 890880c

Please sign in to comment.