@@ -6,7 +6,7 @@ RUN apt-get update && \
6
6
build-essential \
7
7
git cmake nasm mercurial \
8
8
pkg-config openssl libssl-dev \
9
- libx265-dev libx264-dev libpng-dev libfreetype6-dev libdav1d-dev &&\
9
+ libx265-dev libx264-dev libpng-dev libfreetype6-dev libdav1d-dev wget unzip &&\
10
10
rm -fr /var/lib/apt/lists/*
11
11
12
12
WORKDIR /work
@@ -64,23 +64,25 @@ RUN make -j8 && make install
64
64
RUN rm -f /opt/cvision/lib/*.a
65
65
66
66
67
+ WORKDIR /bento4
68
+ RUN wget http://zebulon.bok.net/Bento4/binaries/Bento4-SDK-1-6-0-632.x86_64-unknown-linux.zip
69
+ COPY files/md5sum_checks.txt /tmp/checks.txt
70
+ RUN md5sum --check /tmp/checks.txt
71
+ RUN unzip Bento4-SDK-1-6-0-632.x86_64-unknown-linux.zip
72
+
67
73
FROM ubuntu:24.04 AS encoder
68
74
RUN apt-get update && \
69
75
apt-get install --no-install-recommends -y \
70
- ca-certificates libx265-199 libx264-164 libpng16-16 libfreetype6 libssl3 wget unzip libdav1d7 && \
76
+ ca-certificates libx265-199 libx264-164 libpng16-16 libfreetype6 libssl3 libdav1d7 && \
71
77
rm -fr /var/lib/apt/lists/*
72
78
COPY --from=builder /opt/cvision /opt/cvision
73
79
COPY files/cvision.conf /etc/ld.so.conf.d
74
80
COPY files/test.sh /test.sh
75
81
RUN chmod +x /test.sh
76
82
77
83
# Install Bento4
78
- RUN wget http://zebulon.bok.net/Bento4/binaries/Bento4-SDK-1-6-0-632.x86_64-unknown-linux.zip
79
- COPY files/md5sum_checks.txt /tmp/checks.txt
80
- RUN md5sum --check /tmp/checks.txt
81
- RUN unzip Bento4-SDK-1-6-0-632.x86_64-unknown-linux.zip
82
- RUN cp Bento4-SDK-1-6-0-632.x86_64-unknown-linux/bin/mp4dump /opt/cvision/bin
83
- RUN cp Bento4-SDK-1-6-0-632.x86_64-unknown-linux/bin/mp4info /opt/cvision/bin
84
+ COPY --from=builder /bento4/Bento4-SDK-1-6-0-632.x86_64-unknown-linux/bin/mp4dump /opt/cvision/bin
85
+ COPY --from=builder /bento4/Bento4-SDK-1-6-0-632.x86_64-unknown-linux/bin/mp4info /opt/cvision/bin
84
86
85
87
ENV PATH="/opt/cvision/bin:${PATH}"
86
88
RUN ldconfig /
0 commit comments