From 7ee1280addd7cfaa93b8368b2283ddda18f69286 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Sun, 16 Aug 2020 18:51:31 +0200 Subject: [PATCH] download url as ARG --- .m1k1o/chromium/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.m1k1o/chromium/Dockerfile b/.m1k1o/chromium/Dockerfile index 5a065549..7c3a0dc1 100644 --- a/.m1k1o/chromium/Dockerfile +++ b/.m1k1o/chromium/Dockerfile @@ -1,12 +1,14 @@ FROM m1k1o/neko:base +ARG SRC_URL="https://github.com/macchrome/linchrome/releases/download/v84.0.4147.125-r768962-portable-ungoogled-Lin64/ungoogled-chromium_84.0.4147.125_1.vaapi_linux.tar.xz" + # # install custom chromium build from woolyss with support for hevc/x265 RUN set -eux; apt-get update; \ - apt-get install -y --no-install-recommends libatk1.0-0 libatk-bridge2.0-0 libatomic1 libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \ - wget -O - /tmp/chromium.tar.xz "https://github.com/macchrome/linchrome/releases/download/v84.0.4147.125-r768962-portable-ungoogled-Lin64/ungoogled-chromium_84.0.4147.125_1.vaapi_linux.tar.xz" | \ - tar -xJf- -C /usr/lib; \ - mv /usr/lib/ungoogled-chromium_84.0.4147.125_1.vaapi_linux /usr/lib/chromium; \ + apt-get install -y --no-install-recommends libatk1.0-0 libatk-bridge2.0-0 libatomic1 \ + libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \ + wget -O - /tmp/chromium.tar.xz "${SRC_URL}" | tar -xJf- -C /tmp; \ + mv /tmp/ungoogled-chromium_* /usr/lib/chromium; \ # # make required changes for sandbox mode mv /usr/lib/chromium/chrome_sandbox /usr/lib/chromium/chrome-sandbox; \