mirror of
https://github.com/kerberos-io/base.git
synced 2026-04-22 15:27:03 +08:00
34 lines
1.1 KiB
Docker
34 lines
1.1 KiB
Docker
FROM golang:1.24.9-bookworm
|
|
LABEL AUTHOR=uug.ai
|
|
|
|
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 nasm tar unzip wget pkg-config curl
|
|
|
|
#############################
|
|
# Static build x264
|
|
|
|
RUN git clone https://code.videolan.org/videolan/x264.git && \
|
|
cd x264 && git checkout 0a84d986 && \
|
|
./configure --prefix=/usr/local --enable-static --enable-pic && \
|
|
make && \
|
|
make install && \
|
|
cd .. && rm -rf x264
|
|
|
|
#################################
|
|
# Clone and build FFMpeg & OpenCV
|
|
|
|
RUN git clone https://github.com/FFmpeg/FFmpeg && \
|
|
cd FFmpeg && git checkout n7.0.3 && \
|
|
./configure --prefix=/usr/local --target-os=linux --enable-nonfree \
|
|
--extra-ldflags="-latomic" \
|
|
--enable-avfilter \
|
|
--disable-zlib \
|
|
--enable-gpl \
|
|
--extra-libs=-latomic \
|
|
--enable-static --disable-shared && \
|
|
make && \
|
|
make install && \
|
|
cd .. && rm -rf FFmpeg
|