File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,15 @@ RUN /bin/rm -rf /opt/_internal /opt/python /usr/local/*/*
8080
8181# EPEL for cmake
8282FROM base as patchelf
83+
84+ # Instead of ADD ./common/install_cpython.sh ...
85+ RUN git clone --depth 1 https://github.com/pytorch/pytorch.git /tmp/pytorch && \
86+ cp /tmp/pytorch/.ci/docker/common/install_cpython.sh /build_scripts/install_cpython.sh && \
87+ rm -rf /tmp/pytorch
8388# Install patchelf
84- ADD ./common/install_patchelf.sh install_patchelf.sh
85- RUN bash ./install_patchelf.sh && rm install_patchelf.sh
89+ # ADD ./common/install_patchelf.sh install_patchelf.sh
90+ #RUN bash ./install_patchelf.sh && rm install_patchelf.sh
91+ RUN bash /build_scripts/install_cpython.sh
8692RUN cp $(which patchelf) /patchelf
8793
8894FROM patchelf as python
You can’t perform that action at this time.
0 commit comments