@@ -112,7 +112,6 @@ FROM build_cpython_system_ssl AS build_cpython36
112112COPY build_scripts/cpython-pubkeys.txt /build_scripts/cpython-pubkeys.txt
113113RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.6.15
114114
115-
116115FROM build_cpython_system_ssl AS build_cpython37
117116COPY build_scripts/cpython-pubkeys.txt /build_scripts/cpython-pubkeys.txt
118117RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.7.17
@@ -122,12 +121,10 @@ FROM build_cpython AS build_cpython38
122121COPY build_scripts/ambv-pubkey.txt /build_scripts/cpython-pubkeys.txt
123122RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.8.19
124123
125-
126124FROM build_cpython AS build_cpython39
127125COPY build_scripts/ambv-pubkey.txt /build_scripts/cpython-pubkeys.txt
128126RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.9.19
129127
130-
131128FROM build_cpython AS build_cpython310
132129COPY build_scripts/cpython-pubkey-310-311.txt /build_scripts/cpython-pubkeys.txt
133130RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.10.14
@@ -140,8 +137,11 @@ FROM build_cpython AS build_cpython312
140137COPY build_scripts/cpython-pubkey-312-313.txt /build_scripts/cpython-pubkeys.txt
141138RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.12.3
142139
143- FROM build_cpython AS all_cpython
144- COPY build_scripts/finalize-python.sh /build_scripts/
140+
141+ FROM runtime_base
142+ COPY --from=build_git /manylinux-rootfs /
143+ COPY --from=build_cpython_system_ssl /manylinux-rootfs /
144+ COPY build_scripts /opt/_internal/build_scripts/
145145RUN --mount=type=bind,target=/build_cpython36,from=build_cpython36 \
146146 --mount=type=bind,target=/build_cpython37,from=build_cpython37 \
147147 --mount=type=bind,target=/build_cpython38,from=build_cpython38 \
@@ -151,20 +151,11 @@ RUN --mount=type=bind,target=/build_cpython36,from=build_cpython36 \
151151 --mount=type=bind,target=/build_cpython312,from=build_cpython312 \
152152 mkdir -p /opt/_internal && \
153153 cp -rf /build_cpython*/opt/_internal/* /opt/_internal/ && \
154- manylinux-entrypoint /build_scripts/finalize-python.sh
155-
156-
157- FROM runtime_base
158- COPY --from=build_git /manylinux-rootfs /
159- COPY --from=build_cpython /manylinux-rootfs /
160- COPY build_scripts /opt/_internal/build_scripts/
161- RUN --mount=type=bind,target=/all_cpython,from=all_cpython \
162- cp -rf /all_cpython/opt/_internal/* /opt/_internal/ && \
163154 manylinux-entrypoint /opt/_internal/build_scripts/finalize.sh \
164- pp37-pypy37_pp73 \
165- pp38-pypy38_pp73 \
166- pp39-pypy39_pp73 \
167- pp310-pypy310_pp73
155+ pp37-pypy37_pp73 \
156+ pp38-pypy38_pp73 \
157+ pp39-pypy39_pp73 \
158+ pp310-pypy310_pp73
168159
169160ENV SSL_CERT_FILE=/opt/_internal/certs.pem
170161
0 commit comments