Skip to content

Commit 568e04f

Browse files
⬆️ Update python/cpython to v3.14.0 (#338)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Franck Nijhof <git@frenck.dev>
1 parent fc459d3 commit 568e04f

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

base/Dockerfile

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ ARG BUILD_FROM=ghcr.io/hassio-addons/base:19.0.0
33
FROM ${BUILD_FROM}
44

55
# Environment variables
6-
ENV \
7-
PATH="/usr/local/bin:$PATH" \
8-
GPG_KEY="7169605F62C751356D054A26A821E680E5FA6305"
6+
ENV PATH="/usr/local/bin:$PATH"
97

108
# Set shell
119
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1210

1311
# Install base system
14-
ARG PYTHON_VERSION="v3.13.7"
12+
ARG PYTHON_VERSION="v3.14.0"
13+
ARG PYTHON_SHA256="2299dae542d395ce3883aca00d3c910307cd68e0b2f7336098c8e7b7eee9f3e9"
1514
ARG PYTHON_PIP_VERSION="25.3"
1615
ARG PYTHON_SETUPTOOLS_VERSION="80.9.0"
16+
1717
# hadolint ignore=DL3003,DL4006,SC2155
1818
RUN \
1919
apk add --no-cache --virtual .build-dependencies \
@@ -24,7 +24,6 @@ RUN \
2424
findutils=4.10.0-r0 \
2525
gcc=14.2.0-r6 \
2626
gdbm-dev=1.24-r0 \
27-
gnupg=2.4.7-r0 \
2827
libffi-dev=3.4.8-r0 \
2928
libnsl-dev=2.0.1-r1 \
3029
libtirpc-dev=1.3.5-r0 \
@@ -44,21 +43,12 @@ RUN \
4443
xz-dev=5.8.1-r0 \
4544
xz=5.8.1-r0 \
4645
zlib-dev=1.3.1-r2 \
46+
zstd-dev=1.5.7-r0 \
4747
\
4848
&& curl -J -L -o /tmp/python.tar.xz \
4949
"https://www.python.org/ftp/python/${PYTHON_VERSION#v}/Python-${PYTHON_VERSION#v}.tar.xz" \
50-
&& curl -J -L -o /tmp/python.tar.xz.asc \
51-
"https://www.python.org/ftp/python/${PYTHON_VERSION#v}/Python-${PYTHON_VERSION#v}.tar.xz.asc" \
5250
\
53-
&& export GNUPGHOME="$(mktemp -d)" \
54-
&& gpg \
55-
--batch \
56-
--keyserver hkps://keys.openpgp.org \
57-
--recv-keys "$GPG_KEY" \
58-
&& gpg \
59-
--batch \
60-
--verify /tmp/python.tar.xz.asc /tmp/python.tar.xz \
61-
&& { command -v gpgconf > /dev/null && gpgconf --kill all || :; } \
51+
&& echo "$PYTHON_SHA256 /tmp/python.tar.xz" | sha256sum -c - \
6252
\
6353
&& mkdir -p /usr/src/python \
6454
&& tar -xJC /usr/src/python --strip-components=1 -f /tmp/python.tar.xz \
@@ -79,6 +69,7 @@ RUN \
7969
EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
8070
LDFLAGS="-Wl,--strip-all" \
8171
PROFILE_TASK="" \
72+
EXTRA_CFLAGS="-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" \
8273
&& make install \
8374
\
8475
&& find /usr/local \
@@ -113,7 +104,6 @@ RUN \
113104
&& apk del --no-cache --purge .build-dependencies \
114105
&& rm -f -r \
115106
/usr/src \
116-
"$GNUPGHOME" \
117107
/tmp/* \
118108
\
119109
&& python3 --version \

0 commit comments

Comments
 (0)