fix: docker build

This commit is contained in:
2025-06-17 13:45:38 +01:00
parent ea33f72069
commit 2c3ef01d45
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
**/target/ **/target/
**/.git/ **/.git/
**/out/ **/out/
**/Dockerfile

View File

@ -15,7 +15,8 @@ RUN apt update && \
protobuf-compiler \ protobuf-compiler \
libclang-dev && \ libclang-dev && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN git clone --single-branch --branch release/7.1 https://git.v0l.io/ffmpeg/ffmpeg.git && \ RUN wget -O ffmpeg.tar.gz https://git.v0l.io/ffmpeg/ffmpeg/archive/release/7.1.tar.gz && \
tar xfv ffmpeg.tar.gz && \
cd ffmpeg && \ cd ffmpeg && \
./configure \ ./configure \
--prefix=$FFMPEG_DIR \ --prefix=$FFMPEG_DIR \
@ -31,6 +32,7 @@ RUN git clone --single-branch --branch release/7.1 https://git.v0l.io/ffmpeg/ffm
--disable-static \ --disable-static \
--enable-shared && \ --enable-shared && \
make -j$(nproc) && make install make -j$(nproc) && make install
ENV LD_LIBRARY_PATH=$FFMPEG_DIR/lib
RUN cargo test RUN cargo test
RUN cargo install --path ./crates/zap-stream --root /app/build RUN cargo install --path ./crates/zap-stream --root /app/build