Last active
July 28, 2023 23:34
-
-
Save ratulbasak/b1297ac3f6c5ef429937006feff929e4 to your computer and use it in GitHub Desktop.
FFmpeg build and install in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.1-runtime | |
WORKDIR /app | |
###################################################################################################################### | |
################################################# INSTALLING FFMPEG ################################################## | |
RUN apt-get update ; apt-get install -y git build-essential gcc make yasm autoconf automake cmake libtool checkinstall libmp3lame-dev pkg-config libunwind-dev zlib1g-dev libssl-dev | |
RUN apt-get update \ | |
&& apt-get clean \ | |
&& apt-get install -y --no-install-recommends libc6-dev libgdiplus wget software-properties-common | |
#RUN RUN apt-add-repository ppa:git-core/ppa && apt-get update && apt-get install -y git | |
RUN wget https://www.ffmpeg.org/releases/ffmpeg-4.0.2.tar.gz | |
RUN tar -xzf ffmpeg-4.0.2.tar.gz; rm -r ffmpeg-4.0.2.tar.gz | |
RUN cd ./ffmpeg-4.0.2; ./configure --enable-gpl --enable-libmp3lame --enable-decoder=mjpeg,png --enable-encoder=png --enable-openssl --enable-nonfree | |
RUN cd ./ffmpeg-4.0.2; make | |
RUN cd ./ffmpeg-4.0.2; make install | |
###################################################################################################################### | |
###################################################################################################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this add the correct paths to env? What if instead of building, the dockerfile
wget
a binary. Where should it go?