File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,25 @@ RUN /bin/rm -rf /opt/_internal /opt/python /usr/local/*/*
8181# EPEL for cmake
8282FROM base as patchelf
8383# Install patchelf
84- ADD ./common/install_patchelf.sh install_patchelf.sh
85- RUN bash ./install_patchelf.sh && rm install_patchelf.sh
84+ RUN git clone --depth 1 --branch temp-gha-runner-v2 https://github.com/sandeepgupta12/pytorch.git /tmp/pytorch && \
85+ cp /tmp/pytorch/.ci/docker/common/install_patchelf.sh /build_scripts/install_patchelf.sh
86+ # ADD ./common/install_patchelf.sh install_patchelf.sh
87+ # RUN bash ./install_patchelf.sh && rm install_patchelf.sh
88+ # RUN cp $(which patchelf) /patchelf
89+ RUN bash /build_scripts/install_patchelf.sh && rm -r /build_scripts
8690RUN cp $(which patchelf) /patchelf
8791
8892FROM patchelf as python
8993# build python
90- COPY manywheel/build_scripts /build_scripts
91- ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
94+ RUN mkdir -p /build_scripts && \
95+ cp -r /tmp/pytorch/.ci/docker/manywheel/build_scripts/* /build_scripts/ && \
96+ cp /tmp/pytorch/.ci/docker/common/install_cpython.sh /build_scripts/install_cpython.sh && \
97+ rm -rf /tmp/pytorch
98+ # COPY manywheel/build_scripts /build_scripts
99+ # ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
92100ENV SSL_CERT_FILE=
93- RUN bash build_scripts/build.sh && rm -r build_scripts
101+ RUN bash /build_scripts/build.sh && rm -r /build_scripts
102+ #RUN bash build_scripts/build.sh && rm -r build_scripts
94103#RUN bash build_scripts/build.sh || (echo "Checksum verification failed!" && exit 1)
95104
96105FROM base as final
You can’t perform that action at this time.
0 commit comments