Skip to content

Commit 8e597f3

Browse files
Refactor Dockerfile to consolidate QSV installation commands into a single RUN statement for improved efficiency
1 parent 68b3a05 commit 8e597f3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

kdiff-snapshots/Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ RUN apt-get update -y \
2323

2424

2525

26-
RUN export QSV_VER="8.1.1"
27-
RUN export QSV_DOWNLOAD_URL="https://github.com/dathere/qsv/releases/download/${QSV_VER}/qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip"
28-
RUN echo "QSV_DOWNLOAD_URL=$QSV_DOWNLOAD_URL"
29-
RUN wget "$QSV_DOWNLOAD_URL"
30-
RUN ls -R
31-
RUN unzip qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip
32-
RUN mv qsv /usr/local/bin/
33-
RUN chmod +x /usr/local/bin/qsv
34-
RUN rm qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip
26+
RUN set -x \
27+
&& export QSV_VER="8.1.1" \
28+
&& export QSV_DOWNLOAD_URL="https://github.com/dathere/qsv/releases/download/${QSV_VER}/qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip" \
29+
&& echo "QSV_DOWNLOAD_URL=$QSV_DOWNLOAD_URL" \
30+
&& wget "$QSV_DOWNLOAD_URL" \
31+
&& ls -R \
32+
&& unzip qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip \
33+
&& mv qsv /usr/local/bin/ \
34+
&& chmod +x /usr/local/bin/qsv \
35+
&& rm qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip
3536

3637

3738

0 commit comments

Comments
 (0)