disable zlib

This commit is contained in:
Cedric Verstraeten
2023-01-19 21:15:47 +01:00
parent dc8bd617be
commit 91ab4d4e65
+19 -20
View File
@@ -1,11 +1,10 @@
FROM debian:bookworm
FROM debian:bullseye AS builder
LABEL Author=Kerberos.io
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget build-essential \
cmake libc-ares-dev uuid-dev daemon libwebsockets-dev git \
cmake wget dh-autoreconf autotools-dev autoconf automake gcc \
build-essential libtool make ca-certificates libc6 supervisor nasm \
zlib1g-dev tar unzip wget pkg-config
build-essential libtool make ca-certificates nasm tar unzip wget pkg-config
#############################
# Static build x264
@@ -25,8 +24,8 @@ RUN git clone https://github.com/FFmpeg/FFmpeg && \
./configure --prefix=/usr/local --target-os=linux --enable-nonfree \
--extra-ldflags="-latomic" \
--enable-avfilter \
--disable-zlib \
--enable-avresample \
--enable-libx264 \
--enable-gpl \
--extra-libs=-latomic \
--enable-static --disable-shared && \
@@ -34,22 +33,22 @@ RUN git clone https://github.com/FFmpeg/FFmpeg && \
make install && \
cd .. && rm -rf FFmpeg
#RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/4.7.0.zip && \
# unzip opencv.zip && mv opencv-4.7.0 opencv && cd opencv && mkdir build && cd build && \
# cmake -D CMAKE_BUILD_TYPE=RELEASE \
# -D CMAKE_INSTALL_PREFIX=/usr/ \
# -D OPENCV_GENERATE_PKGCONFIG=YES \
# -D BUILD_SHARED_LIBS=OFF \
# -D BUILD_TESTS=OFF \
# -D OPENCV_ENABLE_NONFREE=ON \
# #-D BUILD_opencv_dnn=OFF \
# -D BUILD_opencv_ml=OFF \
# -D BUILD_opencv_stitching=OFF \
# -D BUILD_opencv_ts=OFF \
# -D BUILD_opencv_java_bindings_generator=OFF \
# -D BUILD_opencv_python_bindings_generator=OFF \
# -D INSTALL_PYTHON_EXAMPLES=OFF \
# -D BUILD_EXAMPLES=OFF .. && make -j8 && make install && cd ../.. && rm -rf opencv*
RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/4.7.0.zip && \
unzip opencv.zip && mv opencv-4.7.0 opencv && cd opencv && mkdir build && cd build && \
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/ \
-D OPENCV_GENERATE_PKGCONFIG=YES \
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_TESTS=OFF \
-D OPENCV_ENABLE_NONFREE=ON \
#-D BUILD_opencv_dnn=OFF \
-D BUILD_opencv_ml=OFF \
-D BUILD_opencv_stitching=OFF \
-D BUILD_opencv_ts=OFF \
-D BUILD_opencv_java_bindings_generator=OFF \
-D BUILD_opencv_python_bindings_generator=OFF \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF .. && make -j8 && make install && cd ../.. && rm -rf opencv*
############################
# Build Golang