Skip to content

Commit 9c79c7a

Browse files
committed
make py version dynamic
1 parent aaf55a7 commit 9c79c7a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ RUN \
154154
make -j "$(nproc)" && \
155155
make install_lib_shared install_bin && \
156156
echo "**** install python ****" && \
157+
PY_HA_ALPINE_VER=$(echo "${HA_ALPINE_VER}" | sed 's|\.||') && \
157158
PY_RELEASE_TAG=$(curl -s https://api.github.com/repos/linuxserver/docker-python/releases \
158-
| jq -r "first(.[] | select(.tag_name | startswith(\"alpine320-${HA_PY_VERSION}\"))) | .tag_name") && \
159+
| jq -r "first(.[] | select(.tag_name | startswith(\"alpine${PY_HA_ALPINE_VER}-${HA_PY_VERSION}\"))) | .tag_name") && \
159160
if [ -n "${PY_RELEASE_TAG}" ]; then \
160161
echo "**** Installing python from the linuxserver python repo release ${PY_RELEASE_TAG} ****" && \
161162
curl -o \

Dockerfile.aarch64

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ RUN \
154154
make -j "$(nproc)" && \
155155
make install_lib_shared install_bin && \
156156
echo "**** install python ****" && \
157+
PY_HA_ALPINE_VER=$(echo "${HA_ALPINE_VER}" | sed 's|\.||') && \
157158
PY_RELEASE_TAG=$(curl -s https://api.github.com/repos/linuxserver/docker-python/releases \
158-
| jq -r "first(.[] | select(.tag_name | startswith(\"alpine320-${HA_PY_VERSION}\"))) | .tag_name") && \
159+
| jq -r "first(.[] | select(.tag_name | startswith(\"alpine${PY_HA_ALPINE_VER}-${HA_PY_VERSION}\"))) | .tag_name") && \
159160
if [ -n "${PY_RELEASE_TAG}" ]; then \
160161
echo "**** Installing python from the linuxserver python repo release ${PY_RELEASE_TAG} ****" && \
161162
curl -o \

0 commit comments

Comments
 (0)