File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1+ ARG CLEANUP="yes"
2+ FROM centos:7 AS base
3+ ARG MAKE_DOCS="no"
4+
5+ RUN yum update -y && \
6+ yum install -y autoconf automake bzip2 bzip2-devel freetype-devel gcc gcc-c++ git libtool make mercurial && \
7+ yum install -y vim
8+
9+ # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel
10+
11+ WORKDIR /app
12+ COPY ./build-ffmpeg /app/build-ffmpeg
13+
14+ RUN STOP_BEFORE_CMAKE=yes /app/build-ffmpeg --build
15+ RUN SKIP_FFMPEG_BUILD=yes /app/build-ffmpeg --build
16+ RUN AUTOINSTALL=yes /app/build-ffmpeg --build # toggle comment to trigger layer rebuild
17+ RUN cp /app/workspace/bin/ffmpeg /app/workspace/bin/ffprobe /usr/bin/
18+
19+ FROM base as cleanup-no
20+ FROM base as cleanup-yes
21+ RUN /app/build-ffmpeg --cleanup
22+
23+ FROM cleanup-${CLEANUP} AS final
24+
25+ CMD ["--help"]
26+ ENTRYPOINT ["/usr/bin/ffmpeg"]
Original file line number Diff line number Diff line change @@ -296,6 +296,10 @@ if build "pkg-config"; then
296296 build_done " pkg-config"
297297fi
298298
299+ if [[ $STOP_BEFORE_CMAKE == " yes" ]]; then
300+ exit 0
301+ fi
302+
299303if build " cmake" ; then
300304 download " https://cmake.org/files/v3.15/cmake-3.15.4.tar.gz" " cmake-3.15.4.tar.gz"
301305 cd " $PACKAGES " /cmake-3.15.4 || exit
@@ -343,7 +347,7 @@ if build "av1"; then
343347 cd " $PACKAGES " /av1 || exit
344348 mkdir -p " $PACKAGES " /aom_build
345349 cd " $PACKAGES " /aom_build || exit
346- execute cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX:PATH=" ${WORKSPACE} " " $PACKAGES " /av1
350+ execute cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX:PATH=" ${WORKSPACE} " -DCMAKE_INSTALL_LIBDIR=lib " $PACKAGES " /av1
347351 execute make -j $MJOBS
348352 execute make install
349353 build_done " av1"
You can’t perform that action at this time.
0 commit comments