I do not know exactly what is the ffmpeg Python package, but the genuine ffmpeg program is written in C, so i bet that the ffmpeg Python package is only an interface of the latter, see https://github.com/jiashaokun/ffmpeg. So you should install the ffmpeg from the distro by adding something like RUN apt-get apt-get install -y ffmpeg somewhere in you dockerfile.