From 90fbaab61e5c2e10b418160e9a36a840f2e7db85 Mon Sep 17 00:00:00 2001 From: Alexander Borzunov Date: Thu, 13 Jul 2023 19:34:17 +0400 Subject: [PATCH] Fix Docker build by avoiding Python 3.11 (#348) We want to use `3.10.x` since `grpcio-tools` is not compatible with 3.11 yet. However, `python~=3.10` meant `python>=3.10, python<4.0`, so we ended up with a broken build due to python 3.11 installed. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fd03398..b1a2676 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh - bash install_miniconda.sh -b -p /opt/conda && rm install_miniconda.sh ENV PATH="/opt/conda/bin:${PATH}" -RUN conda install python~=3.10 pip && \ +RUN conda install python~=3.10.12 pip && \ pip install --no-cache-dir "torch>=1.12" && \ conda clean --all && rm -rf ~/.cache/pip