Skip to content

Commit

Permalink
Update build_min.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hhsprings committed Jun 3, 2022
1 parent 51e93b2 commit e3b3c68
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build_min.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ for _FFMPEG_VERSION in 4.1.9 4.2.7 4.3.4 4.4.2 ; do
echo > __tagged
export _FFMPEG_EXTRA_VERSION_SUFFIX=${_YOU}${_VER_MIN}-min
#
if (docker run -t \
${_YOU}/ffmpeg-yours-min:${_VER_MIN}-${_FFMPEG_VERSION}-${_BUILDPACKDEPS_TAG} \
ffmpeg -version 2>&1) ; then
docker rmi --force ${_YOU}/ffmpeg-yours-min:${_VER_MIN}-${_FFMPEG_VERSION}-${_BUILDPACKDEPS_TAG} > /dev/null || true
if (docker pull \
${_YOU}/ffmpeg-yours-min:${_VER_MIN}-${_FFMPEG_VERSION}-${_BUILDPACKDEPS_TAG} > /dev/null) ; then
docker rmi --force ${_YOU}/ffmpeg-yours-min:${_VER_MIN}-${_FFMPEG_VERSION}-${_BUILDPACKDEPS_TAG} || true
else
docker build -f Dockerfile -t ${_YOU}/ffmpeg-yours-min:${_VER_MIN}-${_FFMPEG_VERSION}-${_BUILDPACKDEPS_TAG} \
--build-arg _BUILDPACKDEPS_TAG=${_BUILDPACKDEPS_TAG} \
Expand Down

0 comments on commit e3b3c68

Please sign in to comment.