mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Update miniconda repository, be specific about cudatoolkit (#37186)
Summary: Miniconda repo has moved from continuum.io to anaconda.com Also we should be specific about cudatoolkit version so that it installs the right CUDA version. Resolves https://github.com/pytorch/pytorch/issues/37047 Signed-off-by: Eli Uriegas <eliuriegas@fb.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/37186 Differential Revision: D21443147 Pulled By: seemethere fbshipit-source-id: 856718822bdd3ce51bbc6e59b0609fe6af77bd79
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2b41b9bceb
commit
305444a0bd
@ -27,7 +27,7 @@ RUN mkdir /opt/ccache && ccache --set-config=cache_dir=/opt/ccache
|
||||
ENV PATH /opt/conda/bin:$PATH
|
||||
|
||||
FROM dev-base as conda
|
||||
RUN curl -v -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
|
||||
RUN curl -fsSL -v -o ~/miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
|
||||
chmod +x ~/miniconda.sh && \
|
||||
~/miniconda.sh -b -p /opt/conda && \
|
||||
rm ~/miniconda.sh && \
|
||||
@ -50,7 +50,7 @@ RUN --mount=type=cache,target=/opt/ccache \
|
||||
|
||||
FROM conda as conda-installs
|
||||
ARG INSTALL_CHANNEL=pytorch-nightly
|
||||
RUN /opt/conda/bin/conda install -c "${INSTALL_CHANNEL}" -y pytorch torchvision && \
|
||||
RUN /opt/conda/bin/conda install -c "${INSTALL_CHANNEL}" -y pytorch torchvision cudatoolkit=10.1 && \
|
||||
/opt/conda/bin/conda clean -ya
|
||||
|
||||
FROM ${BASE_IMAGE} as official
|
||||
|
Reference in New Issue
Block a user