File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ RUN /build_python.sh 3.12.7
4040FROM builder-py-base as builder-py-3_13
4141RUN /build_python.sh 3.13.0rc3
4242# ------------------------------------------------------------------------------
43+ FROM builder-py-base as builder-py-3_13t
44+ # Building with all 3 of the options below causes tests to fail.
45+ # Removing just the first means the image is a bit bigger, but we keep optimisations
46+ # --disable-test-modules --enable-optimizations --with-lto
47+ ENV PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto --with-system-expat --without-ensurepip'
48+ RUN /build_python.sh 3.13.0rc3t
49+ RUN mv /snekbin/python/3.13 /snekbin/python/3.13t
50+ # ------------------------------------------------------------------------------
4351FROM python:3.12-slim-bookworm as base
4452
4553ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
@@ -56,6 +64,7 @@ RUN apt-get -y update \
5664COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/
5765COPY --link --from=builder-py-3_12 /snekbin/ /snekbin/
5866COPY --link --from=builder-py-3_13 /snekbin/ /snekbin/
67+ COPY --link --from=builder-py-3_13t /snekbin/ /snekbin/
5968
6069RUN chmod +x /usr/sbin/nsjail \
6170 && ln -s /snekbin/python/3.12/ /snekbin/python/default
You can’t perform that action at this time.
0 commit comments