From 9c79c7a76b020bbe4feda86bc5c5e0fe27a62f2f Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Wed, 5 Mar 2025 17:45:11 -0500 Subject: [PATCH] make py version dynamic --- Dockerfile | 3 ++- Dockerfile.aarch64 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2081f9a..f861c96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -154,8 +154,9 @@ RUN \ make -j "$(nproc)" && \ make install_lib_shared install_bin && \ echo "**** install python ****" && \ + PY_HA_ALPINE_VER=$(echo "${HA_ALPINE_VER}" | sed 's|\.||') && \ PY_RELEASE_TAG=$(curl -s https://api.github.com/repos/linuxserver/docker-python/releases \ - | jq -r "first(.[] | select(.tag_name | startswith(\"alpine320-${HA_PY_VERSION}\"))) | .tag_name") && \ + | jq -r "first(.[] | select(.tag_name | startswith(\"alpine${PY_HA_ALPINE_VER}-${HA_PY_VERSION}\"))) | .tag_name") && \ if [ -n "${PY_RELEASE_TAG}" ]; then \ echo "**** Installing python from the linuxserver python repo release ${PY_RELEASE_TAG} ****" && \ curl -o \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index f780e57..7474294 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -154,8 +154,9 @@ RUN \ make -j "$(nproc)" && \ make install_lib_shared install_bin && \ echo "**** install python ****" && \ + PY_HA_ALPINE_VER=$(echo "${HA_ALPINE_VER}" | sed 's|\.||') && \ PY_RELEASE_TAG=$(curl -s https://api.github.com/repos/linuxserver/docker-python/releases \ - | jq -r "first(.[] | select(.tag_name | startswith(\"alpine320-${HA_PY_VERSION}\"))) | .tag_name") && \ + | jq -r "first(.[] | select(.tag_name | startswith(\"alpine${PY_HA_ALPINE_VER}-${HA_PY_VERSION}\"))) | .tag_name") && \ if [ -n "${PY_RELEASE_TAG}" ]; then \ echo "**** Installing python from the linuxserver python repo release ${PY_RELEASE_TAG} ****" && \ curl -o \