File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ COPY --from=libpng /usr/local/include/libpng* /usr/local/include/
109
109
COPY --from=libpng /usr/local/lib/libpng* /usr/local/lib/
110
110
COPY --from=libpng /usr/local/lib/pkgconfig /usr/local/lib/pkgconfig
111
111
112
- FROM common as cuda_final
112
+ FROM common as cpu_final
113
113
ARG BASE_CUDA_VERSION=10.1
114
114
RUN yum install -y yum-utils centos-release-scl
115
115
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
@@ -125,6 +125,7 @@ RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm &
125
125
RUN yum install -y cmake3 && \
126
126
ln -s /usr/bin/cmake3 /usr/bin/cmake
127
127
128
+ FROM cpu_final as cuda_final
128
129
RUN rm -rf /usr/local/cuda-${BASE_CUDA_VERSION}
129
130
COPY --from=cuda /usr/local/cuda-${BASE_CUDA_VERSION} /usr/local/cuda-${BASE_CUDA_VERSION}
130
131
COPY --from=magma /usr/local/cuda-${BASE_CUDA_VERSION} /usr/local/cuda-${BASE_CUDA_VERSION}
Original file line number Diff line number Diff line change @@ -29,3 +29,14 @@ for cuda_version in 9.2 10.1 10.2 11.0 11.1 11.2; do
29
29
docker push " pytorch/manylinux-cuda${cuda_version// ./ } "
30
30
)
31
31
done
32
+
33
+ (
34
+ set -x
35
+ DOCKER_BUILDKIT=1 docker build \
36
+ -t " pytorch/manylinux-cpu" \
37
+ --build-arg " GPU_IMAGE=centos:7" \
38
+ --target cpu_final \
39
+ -f manywheel/Dockerfile \
40
+ .
41
+ docker push " pytorch/manylinux-cpu"
42
+ )
You can’t perform that action at this time.
0 commit comments