refactor: add mkvpropedit as alternative for in-place modification
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM debian:bullseye-slim AS builder
|
||||
FROM debian:bookworm-slim AS builder
|
||||
|
||||
# Install ffmpeg and mkvtoolnix
|
||||
# but only keep the binaries and libs for ffprobe and mkvmerge
|
||||
@ -7,11 +7,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
&& mkdir -p /artifacts/bin /artifacts/lib \
|
||||
&& cp $(which ffprobe) /artifacts/bin/ \
|
||||
&& cp $(which mkvmerge) /artifacts/bin/ \
|
||||
&& cp $(which mkvpropedit) /artifacts/bin/ \
|
||||
&& ldd $(which ffprobe) | awk '{print $3}' | xargs -I '{}' cp -v '{}' /artifacts/lib/ || true \
|
||||
&& ldd $(which mkvmerge) | awk '{print $3}' | xargs -I '{}' cp -v '{}' /artifacts/lib/ || true
|
||||
&& ldd $(which mkvmerge) | awk '{print $3}' | xargs -I '{}' cp -v '{}' /artifacts/lib/ || true \
|
||||
&& ldd $(which mkvpropedit) | awk '{print $3}' | xargs -I '{}' cp -v '{}' /artifacts/lib/ || true
|
||||
|
||||
# Must be the same base as builder image for shared libraries compatibility
|
||||
FROM python:3.13.3-slim-bullseye
|
||||
FROM python:3.13.3-slim-bookworm
|
||||
|
||||
COPY --from=builder /artifacts/bin/* /usr/local/bin/
|
||||
COPY --from=builder /artifacts/lib/* /usr/local/lib/
|
||||
|
Reference in New Issue
Block a user