Skip to content

Commit

Permalink
docker: add some missing packages and remove freetype for now
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Oct 19, 2024
1 parent 5eed70f commit 5fbedf9
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions Dockerfile.opencv-static-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@ RUN apk update && apk add --no-cache \
eigen-dev \
nasm yasm \
bzip2 xz zlib-dev x264-dev libvpx-dev \
opus-dev dav1d-dev openssl
opus-dev dav1d-dev openssl \
libxml2-dev \
bison \
flex \
glib-dev \
gobject-introspection-dev \
libcap-dev \
libcap-utils \
meson

# copy gstreamer
COPY --from=gstreamer-amd64 /gstbin/lib /usr/local/lib
COPY --from=gstreamer-amd64 /gstbin/include /usr/local/include
COPY --from=gstreamer-amd64 /gstbin/include/gstreamer-1.0/gst /usr/local/include/gst

# Set OpenCV version
ARG OPENCV_VERSION=4.10.0
Expand All @@ -56,7 +64,7 @@ RUN cmake -D CMAKE_BUILD_TYPE=Release \
-D WITH_OPENGL=ON \
-D BUILD_OPENGL=ON \
-D WITH_QT=OFF \
-D WITH_FREETYPE=ON \
-D WITH_FREETYPE=OFF \
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/opencv_contrib/modules \
-D OPENCV_ENABLE_NONFREE=ON \
-D BUILD_SHARED_LIBS=OFF \
Expand Down Expand Up @@ -104,11 +112,19 @@ RUN apk update && apk add --no-cache \
eigen-dev \
nasm yasm \
bzip2 xz zlib-dev x264-dev libvpx-dev \
opus-dev dav1d-dev openssl
opus-dev dav1d-dev openssl \
libxml2-dev \
bison \
flex \
glib-dev \
gobject-introspection-dev \
libcap-dev \
libcap-utils \
meson

# copy gstreamer
COPY --from=gstreamer-arm64 /gstbin/lib /usr/local/lib
COPY --from=gstreamer-arm64 /gstbin/include /usr/local/include
COPY --from=gstreamer-arm64 /gstbin/include/gstreamer-1.0/gst /usr/local/include/gst

# Set OpenCV version
ARG OPENCV_VERSION=4.10.0
Expand All @@ -133,7 +149,7 @@ RUN cmake -D CMAKE_BUILD_TYPE=Release \
-D WITH_OPENGL=ON \
-D BUILD_OPENGL=ON \
-D WITH_QT=OFF \
-D WITH_FREETYPE=ON \
-D WITH_FREETYPE=OFF \
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/opencv_contrib/modules \
-D OPENCV_ENABLE_NONFREE=ON \
-D BUILD_SHARED_LIBS=OFF \
Expand Down

0 comments on commit 5fbedf9

Please sign in to comment.