Skip to content

Commit c71a406

Browse files
Fix QSV installation for multi-platform support by updating package installation commands and ensuring proper architecture detection
1 parent 1036451 commit c71a406

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kdiff-snapshots/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ENV QSV_VER="8.1.1"
1111
USER root
1212
RUN apt-get update -y \
1313
&& apt-get install -y wget gpg \
14-
&& wget -O - https://dathere.github.io/qsv-deb-releases/qsv-deb.gpg | gpg --dearmor -o /usr/share/keyrings/qsv-deb.gpg \
15-
&& echo "deb [signed-by=/usr/share/keyrings/qsv-deb.gpg] https://dathere.github.io/qsv-deb-releases ./" | tee /etc/apt/sources.list.d/qsv.list \
14+
&& wget -O - https://dathere.github.io/qsv-deb-releases/qsv-deb.gpg | sudo gpg --dearmor -o /usr/share/keyrings/qsv-deb.gpg \
15+
&& echo "deb [signed-by=/usr/share/keyrings/qsv-deb.gpg] https://dathere.github.io/qsv-deb-releases ./" | sudo tee /etc/apt/sources.list.d/qsv.list \
1616
&& apt-get update -y \
1717
&& apt-get install -y \
1818
inotify-tools ca-certificates \
@@ -26,7 +26,7 @@ RUN apt-get update -y \
2626
RUN set -eux; \
2727
echo "Detected platform: ${TARGETPLATFORM}"; \
2828
if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
29-
apt-get install -y qsv; \
29+
apt-get update -y && apt-get install -y qsv; \
3030
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
3131
QSV_VER="8.1.1"; \
3232
QSV_DOWNLOAD_URL="https://github.com/dathere/qsv/releases/download/${QSV_VER}/qsv-${QSV_VER}-aarch64-unknown-linux-gnu.zip"; \

0 commit comments

Comments
 (0)