How can I install ffmpeg to my docker image

Viewed 17138

I have setup a docker image in my Windows 10 Machine. Can you please tell me how can I install ffmpeg to that docker image?

4 Answers

apt-get install ffmpeg

As of 2019, this seems to work, just fine on Docker.

Dockerfile

RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y ffmpeg

If you stop with select of geographic area on Ubuntu 18.04 or above, you can install it by specifying ENV DEBIAN_FRONTEND=noninteractive as shown below.

FROM ubuntu:18.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y ffmpeg

As of July 2022, this works for Dockerfile, well at least it worked for me.

RUN apt-get -y update && apt-get -y upgrade && apt-get install -y --no-install-recommends ffmpeg

Just to let the community know.

Related