Skip to content

Commit d05fac7

Browse files
authored
manywheel: Add manywheel-cpu image (#621)
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 43e314f commit d05fac7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

manywheel/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ COPY --from=libpng /usr/local/include/libpng* /usr/local/include/
109109
COPY --from=libpng /usr/local/lib/libpng* /usr/local/lib/
110110
COPY --from=libpng /usr/local/lib/pkgconfig /usr/local/lib/pkgconfig
111111

112-
FROM common as cuda_final
112+
FROM common as cpu_final
113113
ARG BASE_CUDA_VERSION=10.1
114114
RUN yum install -y yum-utils centos-release-scl
115115
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 &
125125
RUN yum install -y cmake3 && \
126126
ln -s /usr/bin/cmake3 /usr/bin/cmake
127127

128+
FROM cpu_final as cuda_final
128129
RUN rm -rf /usr/local/cuda-${BASE_CUDA_VERSION}
129130
COPY --from=cuda /usr/local/cuda-${BASE_CUDA_VERSION} /usr/local/cuda-${BASE_CUDA_VERSION}
130131
COPY --from=magma /usr/local/cuda-${BASE_CUDA_VERSION} /usr/local/cuda-${BASE_CUDA_VERSION}

manywheel/deploy.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ for cuda_version in 9.2 10.1 10.2 11.0 11.1 11.2; do
2929
docker push "pytorch/manylinux-cuda${cuda_version//./}"
3030
)
3131
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+
)

0 commit comments

Comments
 (0)