mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Update Dockerfile (#80258)
Install cmake as part of conda install (as system one is too old) Install other packages from requirements as well Fixes https://github.com/pytorch/pytorch/issues/80212 Pull Request resolved: https://github.com/pytorch/pytorch/pull/80258 Approved by: https://github.com/seemethere
This commit is contained in:
committed by
PyTorch MergeBot
parent
972a209284
commit
b35c033c91
@ -28,11 +28,13 @@ ENV PATH /opt/conda/bin:$PATH
|
|||||||
|
|
||||||
FROM dev-base as conda
|
FROM dev-base as conda
|
||||||
ARG PYTHON_VERSION=3.8
|
ARG PYTHON_VERSION=3.8
|
||||||
|
COPY requirements.txt .
|
||||||
RUN curl -fsSL -v -o ~/miniconda.sh -O https://repo.anaconda.com/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 && \
|
chmod +x ~/miniconda.sh && \
|
||||||
~/miniconda.sh -b -p /opt/conda && \
|
~/miniconda.sh -b -p /opt/conda && \
|
||||||
rm ~/miniconda.sh && \
|
rm ~/miniconda.sh && \
|
||||||
/opt/conda/bin/conda install -y python=${PYTHON_VERSION} conda-build pyyaml numpy ipython && \
|
/opt/conda/bin/conda install -y python=${PYTHON_VERSION} cmake conda-build pyyaml numpy ipython && \
|
||||||
|
/opt/conda/bin/python -mpip install -r requirements.txt && \
|
||||||
/opt/conda/bin/conda clean -ya
|
/opt/conda/bin/conda clean -ya
|
||||||
|
|
||||||
FROM dev-base as submodule-update
|
FROM dev-base as submodule-update
|
||||||
|
|||||||
Reference in New Issue
Block a user