Skip to content

Commit fc6e86c

Browse files
committed
Ffmpeg 7
1 parent 4458add commit fc6e86c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ ARG TARGETPLATFORM
55
# Install dependencies
66
RUN export BUILD=$(if [ "$TARGETPLATFORM" = "linux/amd64" ] ; then echo "amd64"; else echo "arm64"; fi) \
77
buildDeps='wget ca-certificates build-essential' && \
8+
apt-get update -y && apt-get install -y --no-install-recommends software-properties-common ca-certificates; \
9+
add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg7 && \
810
apt-get update -y && apt-get install -y \
911
libjpeg-dev \
1012
imagemagick \
1113
python3-venv \
1214
python3 \
1315
xz-utils \
16+
ffmpeg \
1417
$buildDeps \
1518
--no-install-recommends --force-yes && \
1619
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
1720
python3 -m venv /opt/venv && \
1821
/opt/venv/bin/pip install --upgrade pip setuptools && \
1922
/opt/venv/bin/pip install --no-cache-dir pyssim OpenCV-Python Numpy image && \
20-
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-$BUILD-static.tar.xz && \
21-
tar --strip-components 1 -C /usr/bin -xf ffmpeg-release-$BUILD-static.tar.xz --wildcards ffmpeg*/ff* && \
22-
rm ffmpeg-release-$BUILD-static.tar.xz && \
2323
apt-get purge -y --auto-remove $buildDeps
2424

2525
ENV PATH="/opt/venv/bin:${PATH}"

0 commit comments

Comments
 (0)