From d359dd9a807df0c45d6c76e31ec5e22f9c10f16a Mon Sep 17 00:00:00 2001 From: James Corteciano Date: Wed, 19 Mar 2025 11:15:36 +1100 Subject: [PATCH] fix(Dockerfile): initialize git repo in VMAF source to satisfy vcstagger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initialize a minimal git repository after extracting the VMAF tarball so that Meson’s git describe step works properly. This prevents the fatal error due to missing .git data. --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c129bc9..69b55c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,7 +81,14 @@ ARG VMAF_SHA256=7178c4833639e6b989ecae73131d02f70735fdb3fc2c7d84bc36c9c3461d93b1 RUN \ wget $WGET_OPTS -O vmaf.tar.gz "$VMAF_URL" && \ echo "$VMAF_SHA256 vmaf.tar.gz" | sha256sum -c - && \ - tar $TAR_OPTS vmaf.tar.gz && cd vmaf-*/libvmaf && \ + tar $TAR_OPTS vmaf.tar.gz && \ + cd vmaf-* && \ + git init && \ + git config user.name "vmaf" && \ + git config user.email "vmaf@example.com" && \ + git add . && \ + git commit -m "Initial commit" && \ + cd libvmaf && \ meson setup build \ -Dbuildtype=release \ -Ddefault_library=static \