Skip to content

Commit

Permalink
Also install 3.13t
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Oct 7, 2024
1 parent d7f57ee commit aecc6f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ RUN /build_python.sh 3.12.7
FROM builder-py-base as builder-py-3_13
RUN /build_python.sh 3.13.0rc3
# ------------------------------------------------------------------------------
FROM builder-py-base as builder-py-3_13t
# Building with all 3 of the options below causes tests to fail.
# Removing just the first means the image is a bit bigger, but we keep optimisations
# --disable-test-modules --enable-optimizations --with-lto
ENV PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto --with-system-expat --without-ensurepip'
RUN /build_python.sh 3.13.0rc3t
RUN mv /snekbin/python/3.13 /snekbin/python/3.13t
# ------------------------------------------------------------------------------
FROM python:3.12-slim-bookworm as base

ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
Expand All @@ -56,6 +64,7 @@ RUN apt-get -y update \
COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/
COPY --link --from=builder-py-3_12 /snekbin/ /snekbin/
COPY --link --from=builder-py-3_13 /snekbin/ /snekbin/
COPY --link --from=builder-py-3_13t /snekbin/ /snekbin/

RUN chmod +x /usr/sbin/nsjail \
&& ln -s /snekbin/python/3.12/ /snekbin/python/default
Expand Down

0 comments on commit aecc6f4

Please sign in to comment.