FROM alpine
RUN apk add --no-cache tini
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz \
&& tar xvf ffmpeg-git-amd64-static.tar.xz \
&& mv ffmpeg-git-*-amd64-static/ffmpeg /usr/local/bin/ \
&& mv ffmpeg-git-*-amd64-static/model /usr/local/share/ \
&& rm -rf ffmpeg-git-*-amd64-static ffmpeg-git-amd64-static.tar.xz
ENTRYPOINT ["tini", "--", "ffmpeg"]