fix: docker build
This commit is contained in:
parent
877db958fc
commit
52c0bfbdeb
10
Dockerfile
10
Dockerfile
@ -8,10 +8,13 @@ RUN apt update && \
|
|||||||
apt install -y \
|
apt install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
libx264-dev \
|
libx264-dev \
|
||||||
|
libx265-dev \
|
||||||
|
libwebp-dev \
|
||||||
|
libpng-dev \
|
||||||
nasm \
|
nasm \
|
||||||
libclang-dev && \
|
libclang-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git && \
|
RUN git clone --single-branch --branch release/7.1 https://git.ffmpeg.org/ffmpeg.git && \
|
||||||
cd ffmpeg && \
|
cd ffmpeg && \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=$FFMPEG_DIR \
|
--prefix=$FFMPEG_DIR \
|
||||||
@ -22,6 +25,9 @@ RUN git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git && \
|
|||||||
--enable-version3 \
|
--enable-version3 \
|
||||||
--disable-postproc \
|
--disable-postproc \
|
||||||
--enable-libx264 \
|
--enable-libx264 \
|
||||||
|
--enable-libx265 \
|
||||||
|
--enable-libpng \
|
||||||
|
--enable-libwebp \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared && \
|
--enable-shared && \
|
||||||
make -j$(nproc) && make install
|
make -j$(nproc) && make install
|
||||||
@ -34,4 +40,4 @@ RUN apt update && \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/build .
|
COPY --from=build /app/build .
|
||||||
COPY --from=build /app/ffmpeg/lib/ /lib
|
COPY --from=build /app/ffmpeg/lib/ /lib
|
||||||
ENTRYPOINT ["/app/bin/stream-core"]
|
ENTRYPOINT ["/app/bin/zap-stream-core"]
|
Loading…
x
Reference in New Issue
Block a user