From f70a3f81cd4e67ee1c36d2ae5a3e841e76e900aa Mon Sep 17 00:00:00 2001 From: Mailo Arsac <1706592+arsac@users.noreply.github.com> Date: Wed, 29 Apr 2026 11:15:57 -0700 Subject: [PATCH] fix(subgen): COPY specific patch file instead of directory BuildKit was failing to find the patches/ directory in the build context. Switching to a single-file COPY matches the pattern used by other apps in this repo and sidesteps the issue. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/subgen/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/subgen/Dockerfile b/apps/subgen/Dockerfile index 2617011..fa1e69b 100644 --- a/apps/subgen/Dockerfile +++ b/apps/subgen/Dockerfile @@ -30,11 +30,10 @@ RUN git clone https://github.com/McCloudS/subgen.git . && \ # git apply fails loudly if a hunk doesn't match — so an upstream # rename or refactor will fail the build instead of silently # producing a broken image. -COPY patches/ /tmp/patches/ -RUN for p in /tmp/patches/*.patch; do \ - echo "Applying $p" && git apply --verbose "$p"; \ - done && \ - rm -rf /tmp/patches .git +COPY patches/01-always-extract-audio-via-ffmpeg.patch /tmp/01-always-extract-audio-via-ffmpeg.patch +RUN git apply --verbose /tmp/01-always-extract-audio-via-ffmpeg.patch && \ + rm -f /tmp/01-always-extract-audio-via-ffmpeg.patch && \ + rm -rf .git RUN mkdir -p /cache