mirror of
https://github.com/kerberos-io/base.git
synced 2026-04-22 23:37:07 +08:00
disable zlib
This commit is contained in:
+20
-21
@@ -1,11 +1,10 @@
|
|||||||
FROM debian:bookworm
|
FROM debian:bullseye AS builder
|
||||||
LABEL Author=Kerberos.io
|
LABEL Author=Kerberos.io
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget build-essential \
|
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 libc-ares-dev uuid-dev daemon libwebsockets-dev git \
|
||||||
cmake wget dh-autoreconf autotools-dev autoconf automake gcc \
|
cmake wget dh-autoreconf autotools-dev autoconf automake gcc \
|
||||||
build-essential libtool make ca-certificates libc6 supervisor nasm \
|
build-essential libtool make ca-certificates nasm tar unzip wget pkg-config
|
||||||
zlib1g-dev tar unzip wget pkg-config
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
# Static build x264
|
# Static build x264
|
||||||
@@ -25,8 +24,8 @@ RUN git clone https://github.com/FFmpeg/FFmpeg && \
|
|||||||
./configure --prefix=/usr/local --target-os=linux --enable-nonfree \
|
./configure --prefix=/usr/local --target-os=linux --enable-nonfree \
|
||||||
--extra-ldflags="-latomic" \
|
--extra-ldflags="-latomic" \
|
||||||
--enable-avfilter \
|
--enable-avfilter \
|
||||||
|
--disable-zlib \
|
||||||
--enable-avresample \
|
--enable-avresample \
|
||||||
--enable-libx264 \
|
|
||||||
--enable-gpl \
|
--enable-gpl \
|
||||||
--extra-libs=-latomic \
|
--extra-libs=-latomic \
|
||||||
--enable-static --disable-shared && \
|
--enable-static --disable-shared && \
|
||||||
@@ -34,22 +33,22 @@ RUN git clone https://github.com/FFmpeg/FFmpeg && \
|
|||||||
make install && \
|
make install && \
|
||||||
cd .. && rm -rf FFmpeg
|
cd .. && rm -rf FFmpeg
|
||||||
|
|
||||||
#RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/4.7.0.zip && \
|
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 && \
|
unzip opencv.zip && mv opencv-4.7.0 opencv && cd opencv && mkdir build && cd build && \
|
||||||
# cmake -D CMAKE_BUILD_TYPE=RELEASE \
|
cmake -D CMAKE_BUILD_TYPE=RELEASE \
|
||||||
# -D CMAKE_INSTALL_PREFIX=/usr/ \
|
-D CMAKE_INSTALL_PREFIX=/usr/ \
|
||||||
# -D OPENCV_GENERATE_PKGCONFIG=YES \
|
-D OPENCV_GENERATE_PKGCONFIG=YES \
|
||||||
# -D BUILD_SHARED_LIBS=OFF \
|
-D BUILD_SHARED_LIBS=OFF \
|
||||||
# -D BUILD_TESTS=OFF \
|
-D BUILD_TESTS=OFF \
|
||||||
# -D OPENCV_ENABLE_NONFREE=ON \
|
-D OPENCV_ENABLE_NONFREE=ON \
|
||||||
# #-D BUILD_opencv_dnn=OFF \
|
#-D BUILD_opencv_dnn=OFF \
|
||||||
# -D BUILD_opencv_ml=OFF \
|
-D BUILD_opencv_ml=OFF \
|
||||||
# -D BUILD_opencv_stitching=OFF \
|
-D BUILD_opencv_stitching=OFF \
|
||||||
# -D BUILD_opencv_ts=OFF \
|
-D BUILD_opencv_ts=OFF \
|
||||||
# -D BUILD_opencv_java_bindings_generator=OFF \
|
-D BUILD_opencv_java_bindings_generator=OFF \
|
||||||
# -D BUILD_opencv_python_bindings_generator=OFF \
|
-D BUILD_opencv_python_bindings_generator=OFF \
|
||||||
# -D INSTALL_PYTHON_EXAMPLES=OFF \
|
-D INSTALL_PYTHON_EXAMPLES=OFF \
|
||||||
# -D BUILD_EXAMPLES=OFF .. && make -j8 && make install && cd ../.. && rm -rf opencv*
|
-D BUILD_EXAMPLES=OFF .. && make -j8 && make install && cd ../.. && rm -rf opencv*
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# Build Golang
|
# Build Golang
|
||||||
@@ -65,4 +64,4 @@ RUN ARCH=$(uname -m) && \
|
|||||||
wget "https://dl.google.com/go/go1.19.linux-$ARCH.tar.gz" && \
|
wget "https://dl.google.com/go/go1.19.linux-$ARCH.tar.gz" && \
|
||||||
tar -xvf "go1.19.linux-$ARCH.tar.gz" && \
|
tar -xvf "go1.19.linux-$ARCH.tar.gz" && \
|
||||||
rm -rf go1.19.linux-$ARCH.tar.gz && \
|
rm -rf go1.19.linux-$ARCH.tar.gz && \
|
||||||
mv go /usr/local
|
mv go /usr/local
|
||||||
Reference in New Issue
Block a user