wget to curl

This commit is contained in:
Alexandre
2023-03-14 21:35:20 +01:00
committed by GitHub
parent f3c4263768
commit 63a53050cb

View File

@@ -23,8 +23,8 @@ VOLUME [ "/data" ]
##################
RUN apk --no-cache add jq bc grep curl \
&& GC_URL=`wget https://api.github.com/repos/vishen/go-chromecast/releases/latest -O - | jq -r '.assets[].browser_download_url' | grep ${TARGETOS}_${TARGETARCH}${TARGETVARIANT}` \
&& wget $GC_URL -O /root/go-chromecast.tgz \
&& GC_URL=`curl https://api.github.com/repos/vishen/go-chromecast/releases/latest | jq -r '.assets[].browser_download_url' | grep ${TARGETOS}_${TARGETARCH}${TARGETVARIANT}` \
&& curl $GC_URL -o /root/go-chromecast.tgz \
&& tar xzf /root/go-chromecast.tgz -C /usr/bin \
&& rm -rf /root/* \
&& chmod +x /usr/bin/go-chromecast \