From 27cc9f47647e7c30b5ca68e2d2facf8e9613c1d6 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Mon, 10 Nov 2025 13:31:48 +0700 Subject: [PATCH] [core] Add opustags --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8c82106c..9390ee70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -163,6 +163,7 @@ RUN if [ "$USE_BROWSER" = "chromium" ]; then \ # Available versions: # https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable ARG CHROME_VERSION="140.0.7339.80-1" +ARG OPUSTAGS_VERSION="1.10.1" RUN if [ "$USE_BROWSER" = "chrome" ]; then \ wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \ && apt-get update \ @@ -176,6 +177,22 @@ RUN apt-get update \ && apt-get install -y curl \ && rm -rf /var/lib/apt/lists/* +# Build and install opustags so audio metadata can be cleaned up inside the container +RUN set -eux; \ + buildDeps='build-essential cmake pkg-config libogg-dev'; \ + apt-get update; \ + apt-get install -y --no-install-recommends ${buildDeps}; \ + mkdir -p /tmp/opustags; \ + curl -L https://github.com/fmang/opustags/archive/refs/tags/${OPUSTAGS_VERSION}.tar.gz \ + | tar -xz -C /tmp/opustags; \ + cd /tmp/opustags/opustags-${OPUSTAGS_VERSION}; \ + cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release; \ + cmake --build build --config Release; \ + cmake --install build; \ + rm -rf /tmp/opustags; \ + apt-get purge -y --auto-remove ${buildDeps}; \ + rm -rf /var/lib/apt/lists/* + # GOWS requirements # libc6 RUN apt-get update \