ffmpeg-min/Dockerfile
Anton 4fce4e9726
All checks were successful
Publish Docker image / Push Docker image to the registry (push) Successful in 42m27s
Add JPEG and PNG for music thumbnails
2024-06-17 23:38:39 +03:00

33 lines
799 B
Docker

FROM debian:bookworm
RUN apt-get update
RUN apt-get install -yqq autoconf \
automake \
build-essential \
cmake \
git-core \
libtool \
libunistring-dev \
meson \
ninja-build \
pkg-config \
texinfo \
wget \
yasm \
libpng-dev \
libjpeg-dev
WORKDIR /opt/ffmpeg-sources
RUN wget https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz && tar -xJvf ffmpeg-6.1.tar.xz
WORKDIR /opt/ffmpeg-sources/ffmpeg-6.1
RUN ./configure --pkg-config-flags="--static" --extra-libs="-lpthread" --ld="g++" \
--prefix="/opt/ffmpeg-build" --enable-shared --disable-static \
--disable-doc --disable-network \
--disable-lzma --disable-bzlib --disable-bsfs --disable-v4l2-m2m \
--enable-decoder=mjpeg --enable-encoder=mjpeg --enable-decoder=png --enable-encoder=png
RUN make -j16
RUN make install