fix multiarch in ffmpeg stage
All checks were successful
Build only (for PRs) / build-only (push) Successful in 27s

This commit is contained in:
2026-03-05 23:18:57 -05:00
parent 23a27217df
commit eceb3b3d76

View File

@@ -16,13 +16,8 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg
RUN mkdir -p /rootfs/bin && \
cp /usr/bin/ffmpeg /usr/bin/ffprobe /rootfs/bin/ && \
ldd /usr/bin/ffmpeg | grep "=> /" | awk '{print $3}' | \
xargs -I '{}' cp --parents '{}' /rootfs && \
cp --parents /lib/x86_64-linux-gnu/libdl.so.2 /rootfs && \
cp --parents /lib/x86_64-linux-gnu/libpthread.so.0 /rootfs && \
cp --parents /lib/x86_64-linux-gnu/libutil.so.1 /rootfs && \
cp --parents /lib/x86_64-linux-gnu/librt.so.1 /rootfs && \
cp --parents /lib64/ld-linux-x86-64.so.2 /rootfs
ldd /usr/bin/ffmpeg | awk '{print $3}' | grep "^/" | xargs -I '{}' cp --parents '{}' /rootfs && \
ldd /usr/bin/ffmpeg | awk 'NF==2 {print $1}' | grep "^/" | xargs -I '{}' cp --parents '{}' /rootfs
################################################################################
# YT-DLP builder stage