Skip to content

Commit f396acf

Browse files
clone one file
1 parent f326c9d commit f396acf

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,20 @@ RUN bash /build_scripts/install_cpython.sh
9292
RUN cp $(which patchelf) /patchelf
9393

9494
FROM patchelf as python
95+
96+
# Clone only required scripts from the PyTorch repo
97+
RUN git clone --depth 1 https://github.com/pytorch/pytorch.git /tmp/pytorch && \
98+
mkdir -p /build_scripts && \
99+
cp -r /tmp/pytorch/.ci/docker/manywheel/build_scripts/* /build_scripts/ && \
100+
cp /tmp/pytorch/.ci/docker/common/install_cpython.sh /build_scripts/install_cpython.sh && \
101+
rm -rf /tmp/pytorch
95102
# build python
96-
COPY manywheel/build_scripts /build_scripts
97-
ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
103+
#COPY manywheel/build_scripts /build_scripts
104+
#ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
98105
ENV SSL_CERT_FILE=
99-
RUN bash build_scripts/build.sh && rm -r build_scripts
106+
# Run the build script
107+
RUN bash /build_scripts/build.sh && rm -r /build_scripts
108+
#RUN bash build_scripts/build.sh && rm -r build_scripts
100109
#RUN bash build_scripts/build.sh || (echo "Checksum verification failed!" && exit 1)
101110

102111
FROM base as final

0 commit comments

Comments
 (0)