Skip to content

Commit 7284ff2

Browse files
committed
fix lint error
Signed-off-by: Srikanth Ramakrishna <srikanth.ramakrishna@intel.com>
1 parent d565740 commit 7284ff2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pytorch/Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,9 @@ ARG XPU_SMI_VERSION
315315

316316
ARG API_URL=https://api.github.com/repos/intel/xpumanager/releases/tags/V${XPU_SMI_VERSION}
317317

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 && \
323321
rm -rf -- *.deb /etc/apt/sources.list.d/intel-gpu-jammy.list /etc/apt/sources.list.d/oneAPI.list /tmp/asset_data.txt
324322

325323
ARG GID=109

0 commit comments

Comments
 (0)