@@ -27,6 +27,9 @@ RUN apt-get -y update \
2727 && apt-get install -y --no-install-recommends \
2828 libxmlsec1-dev \
2929 tk-dev \
30+ lsb-release \
31+ software-properties-common \
32+ gnupg \
3033 && rm -rf /var/lib/apt/lists/*
3134
3235RUN git clone -b v2.6.9 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT
@@ -43,6 +46,16 @@ RUN /build_python.sh 3.14.0
4346FROM builder-py-base AS builder-py-3_14t
4447RUN /build_python.sh 3.14.0t
4548# ------------------------------------------------------------------------------
49+ FROM builder-py-base AS builder-py-3_14j
50+
51+ # Following guidance from https://github.com/python/cpython/blob/main/Tools/jit/README.md
52+ RUN curl -o /tmp/llvm.sh https://apt.llvm.org/llvm.sh \
53+ && chmod +x /tmp/llvm.sh \
54+ && /tmp/llvm.sh 19 \
55+ && rm /tmp/llvm.sh
56+
57+ RUN /build_python.sh 3.14.0j
58+ # ------------------------------------------------------------------------------
4659FROM python:3.13-slim-bookworm AS base
4760
4861ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
@@ -60,6 +73,7 @@ COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/
6073COPY --link --from=builder-py-3_13 /snekbin/ /snekbin/
6174COPY --link --from=builder-py-3_14 /snekbin/ /snekbin/
6275COPY --link --from=builder-py-3_14t /snekbin/ /snekbin/
76+ COPY --link --from=builder-py-3_14j /snekbin/ /snekbin/
6377
6478RUN chmod +x /usr/sbin/nsjail \
6579 && ln -s /snekbin/python/3.14/ /snekbin/python/default
0 commit comments