These images were heavily inspired by this image. However with a lot changes like:
- no more single Dockerfile (3 image layers: dependencies, build-stage, runtime)
- no more forced multi-stage builds except those cases when final stage is vanilla operating system
- alpine 3.14
- ffmpeg 4.4 by default
Dependencies image contains all necessary libraries for FFMPEG built from source. Image size: 134MB
Build-stage image contains only build of an FFMPEG with a copy of shared objects from the dependency image. Image size: 194MB
Runtime image contains a copy of binaries, includes, libraries and shares, i.e all necessary pieces for an FFMPEG. Image size: 24MB
ffmpeg tool image is basically a containerized version of ffmpeg CLI tool. More to come. Image size: 24MB at minimum
In order to get all necessary ffmpeg pieces you need to create a Dockerfile with the following instructions:
FROM denismakogon/ffmpeg-alpine:4.4-runtime as build-stage
FROM <your-final-stage-image>
COPY --from=build-stage /tmp/fakeroot/bin /usr/local/bin
COPY --from=build-stage /tmp/fakeroot/share /usr/local/share
COPY --from=build-stage /tmp/fakeroot/include /usr/local/include
COPY --from=build-stage /tmp/fakeroot/lib /usr/local/lib