File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -315,11 +315,9 @@ ARG XPU_SMI_VERSION
315
315
316
316
ARG API_URL=https://api.github.com/repos/intel/xpumanager/releases/tags/V${XPU_SMI_VERSION}
317
317
318
- RUN curl -H "Accept: application/vnd.github.v3+json" -H "User-Agent: MyClient/1.0.0" "$API_URL" > /tmp/asset_data.txt && \
319
- jq -r '.assets[] | select(.name | test("^xpu-smi.*u22\\ .04_amd64\\ .deb$")) | .browser_download_url' < /tmp/asset_data.txt | \
320
- while read -r url; do wget -q --no-check-certificate "$url" ; done
321
-
322
- RUN ldconfig && dpkg -i --force-all -- *.deb && \
318
+ RUN curl -H "Accept: application/vnd.github.v3+json" -H "User-Agent: MyClient/1.0.0" "$API_URL" >> /tmp/asset_data.txt && \
319
+ wget -q --no-check-certificate "$(jq -r '.assets[] | select(.name | test(" ^xpu-smi.*u22\\ .04_amd64\\ .deb$")) | .browser_download_url' < /tmp/asset_data.txt)" && \
320
+ ldconfig && dpkg -i --force-all -- *.deb && \
323
321
rm -rf -- *.deb /etc/apt/sources.list.d/intel-gpu-jammy.list /etc/apt/sources.list.d/oneAPI.list /tmp/asset_data.txt
324
322
325
323
ARG GID=109
You can’t perform that action at this time.
0 commit comments