mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-20 13:40:33 +00:00
fix: docker build
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
**/target/
|
**/target/
|
||||||
**/.git/
|
**/.git/
|
||||||
**/out/
|
**/out/
|
||||||
|
**/Dockerfile
|
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user