diff --git a/docker/Dockerfile b/docker/Dockerfile index d20ec63d91..fff3d18ef0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,6 +14,8 @@ ARG ARCH=${ARCH/amd64/x86_64} ARG BUILD_REF ARG BUILD_DATE +ARG RELEASE_QUERY_API="https://api.github.com/repos/nushell/nushell/releases/latest" + LABEL maintainer="The Nushell Project Developers" \ org.opencontainers.image.licenses="MIT" \ org.opencontainers.image.title="Nushell" \ @@ -29,7 +31,7 @@ RUN echo '/usr/bin/nu' >> /etc/shells \ && adduser -D -s /usr/bin/nu nushell \ && mkdir -p /home/nushell/.config/nushell/ \ && cd /tmp \ - && wget -qO - https://api.github.com/repos/nushell/nushell/releases/latest \ + && wget -qO - ${RELEASE_QUERY_API} \ | grep browser_download_url \ | cut -d '"' -f 4 \ | grep ${ARCH}-unknown-linux-musl \ diff --git a/docker/debian.Dockerfile b/docker/debian.Dockerfile index 9a510453ef..1e2566eddb 100644 --- a/docker/debian.Dockerfile +++ b/docker/debian.Dockerfile @@ -14,6 +14,8 @@ ARG ARCH=${ARCH/amd64/x86_64} ARG BUILD_REF ARG BUILD_DATE +ARG RELEASE_QUERY_API="https://api.github.com/repos/nushell/nushell/releases/latest" + LABEL maintainer="The Nushell Project Developers" \ org.opencontainers.image.licenses="MIT" \ org.opencontainers.image.title="Nushell" \ @@ -27,7 +29,7 @@ LABEL maintainer="The Nushell Project Developers" \ RUN apt update && apt install -y wget \ && cd /tmp \ - && wget -qO - https://api.github.com/repos/nushell/nushell/releases/latest \ + && wget -qO - ${RELEASE_QUERY_API} \ | grep browser_download_url \ | cut -d '"' -f 4 \ | grep ${ARCH}-unknown-linux-gnu \