Skip to content

Commit

Permalink
Fix Docker build by avoiding Python 3.11 (#348)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
borzunov committed Jul 13, 2023
1 parent 43acfe5 commit 90fbaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 90fbaab

Please sign in to comment.