Skip to content

Commit

Permalink
docker: make sure that gstreamer-full static lib is built, also limit…
Browse files Browse the repository at this point in the history
… the plugins to base plus a few choices

Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Oct 20, 2024
1 parent cca0e70 commit 1b7dcdd
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions Dockerfile.gstreamer-static-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,14 @@ RUN apk update && apk add build-base \
meson \
perl \
wget \
git \
nasm
git cmake \
nasm harfbuzz-static harfbuzz-dev fribidi-static fribidi-dev

RUN meson --default-library=static --prefix=/gstbin \
-Dgst-full-target-type=static_library \
-Dauto_features=disabled \
-Dgst-full-target-type=static_library \
-Dgst-full=enabled \
-Dauto_features=disabled \
-Dbase=enabled \
-Dgood=enabled \
-Dbad=enabled \
-Dgst-plugins-base:typefind=enabled \
-Dgst-plugins-base:playback=enabled \
-Dgst-plugins-base:volume=enabled \
-Dgst-plugins-base:audioconvert=enabled \
-Dgst-plugins-base:app=enabled \
-Dgst-plugins-good:isomp4=enabled \
-Dgst-plugins-good:rtp=enabled \
-Dgst-plugins-good:udp=enabled \
Expand All @@ -46,7 +40,7 @@ RUN meson --default-library=static --prefix=/gstbin \
-Dgst-plugins-bad:codectimestamper=enabled \
-Dgst-plugins-bad:openh264=enabled \
-Dtools=disabled \
build
build

RUN meson compile -C build

Expand Down Expand Up @@ -74,20 +68,14 @@ RUN apk update && apk add build-base \
meson \
perl \
wget \
git \
nasm
git cmake \
nasm harfbuzz-static harfbuzz-dev fribidi-static fribidi-dev

RUN meson --default-library=static --prefix=/gstbin \
-Dgst-full-target-type=static_library \
-Dauto_features=disabled \
-Dgst-full-target-type=static_library \
-Dgst-full=enabled \
-Dauto_features=disabled \
-Dbase=enabled \
-Dgood=enabled \
-Dbad=enabled \
-Dgst-plugins-base:typefind=enabled \
-Dgst-plugins-base:playback=enabled \
-Dgst-plugins-base:volume=enabled \
-Dgst-plugins-base:audioconvert=enabled \
-Dgst-plugins-base:app=enabled \
-Dgst-plugins-good:isomp4=enabled \
-Dgst-plugins-good:rtp=enabled \
-Dgst-plugins-good:udp=enabled \
Expand All @@ -98,8 +86,8 @@ RUN meson --default-library=static --prefix=/gstbin \
-Dgst-plugins-bad:codectimestamper=enabled \
-Dgst-plugins-bad:openh264=enabled \
-Dtools=disabled \
build

build
RUN meson compile -C build

RUN meson install -C build
Expand All @@ -109,5 +97,4 @@ ARG TARGETARCH
FROM builder-${TARGETARCH} AS final

ENV PATH=/gstbin/bin:${PATH}
ENV LD_LIBRARY_PATH=/usr/lib:/gstbin/lib:/usr/local/lib:${LD_LIBRARY_PATH}
ENV PKG_CONFIG_PATH=/gstbin/lib/pkgconfig

0 comments on commit 1b7dcdd

Please sign in to comment.