Examples of ffmpeg in Docker.
🕹 f3l1x.io | 💻 f3l1x | 🐦 @xf3l1x
FROM jrottenberg/ffmpeg:7.1-scratch AS ffmpeg
FROM debian:bookworm-slim
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
RUN apt update && \
apt install -y YOUR_DEPS && \
apt clean -y && \
apt autoclean -y && \
apt autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
COPY --from=ffmpeg /bin/ffmpeg /bin/ffprobe /usr/local/bin/
COPY --from=ffmpeg /lib /lib
COPY --from=ffmpeg /share /share
COPY ./app /app
ENTRYPOINT ["/app"]
Consider to support f3l1x. Also thank you for using this package.