build(docker): extract ffmpeg tar directly into the ffmpeg folder

This fixes a bug where the mv ffmpeg command breaks if the upstream folder name of the ffmpeg tar
changes (version change).
This commit is contained in:
Yassine Doghri 2022-09-14 14:45:39 +00:00
parent f2bc2f7e01
commit 94fae92e9a
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@ FROM docker.io/alpine:3.13 AS ffmpeg-downloader
RUN apk add --no-cache curl && \
curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -o ffmpeg.tar.xz && \
tar -xJf ffmpeg.tar.xz && \
mv ffmpeg-5.0.1-amd64-static ffmpeg
mkdir ffmpeg && \
tar -xJf ffmpeg.tar.xz -C ffmpeg --strip-components 1
FROM docker.io/php:8.0-fpm-alpine3.13