13 lines
451 B
Docker
13 lines
451 B
Docker
FROM debian AS tmp
|
|
ARG SCRIPT_VER=heads/master
|
|
WORKDIR /root
|
|
RUN apt update && apt install -y build-essential curl git
|
|
RUN curl https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/refs/${SCRIPT_VER}/build-ffmpeg >build-ffmpeg && \
|
|
chmod +x build-ffmpeg && \
|
|
NUMJOBS=12 ./build-ffmpeg -b --enable-gpl-and-non-free --full-static
|
|
|
|
FROM scratch
|
|
COPY --from=tmp /usr/local/bin/ff* /usr/bin/
|
|
ENTRYPOINT ["/usr/bin/ffmpeg"]
|
|
CMD ["-h"]
|