mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 11:41:27 +03:00
Update Dockerfile
This commit is contained in:
committed by
GitHub
parent
5d9cb19bde
commit
7333edf6c8
20
Dockerfile
20
Dockerfile
@@ -1,23 +1,9 @@
|
|||||||
# Fetching our ffmpeg
|
# Fetching our ffmpeg
|
||||||
FROM ubuntu:22.04 AS ffmpeg
|
FROM ubuntu:22.04 AS ffmpeg
|
||||||
ARG TARGETPLATFORM
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt update && \
|
# Use script due local build compability
|
||||||
apt install -y --no-install-recommends wget xz-utils ca-certificates
|
COPY ffmpeg-fetch.sh .
|
||||||
# Disable using ffmpeg-fetch.sh and integrate in Dockerfile, in case of err 'mismatcth platform' we enable this for counter measure.
|
RUN sh ./ffmpeg-fetch.sh
|
||||||
#COPY ffmpeg-fetch.sh .
|
|
||||||
#RUN sh ./ffmpeg-fetch.sh
|
|
||||||
RUN case ${TARGETPLATFORM} in \
|
|
||||||
"linux/amd64") ARCH=amd64 ;; \
|
|
||||||
"linux/arm64") ARCH=arm64 ;; \
|
|
||||||
"linux/arm/v7") ARCH=armhf ;; \
|
|
||||||
esac \
|
|
||||||
&& wget -O ffmpeg.txz -c -t 10 "https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-${ARCH}-static.tar.xz" && \
|
|
||||||
mkdir /tmp/ffmpeg && \
|
|
||||||
tar xf ffmpeg.txz -C /tmp/ffmpeg && \
|
|
||||||
cp /tmp/ffmpeg/*/ffmpeg /usr/local/bin/ffmpeg && \
|
|
||||||
cp /tmp/ffmpeg/*/ffprobe /usr/local/bin/ffprobe
|
|
||||||
|
|
||||||
|
|
||||||
# Create our Ubuntu 22.04 with node 16
|
# Create our Ubuntu 22.04 with node 16
|
||||||
# Go to 20.04
|
# Go to 20.04
|
||||||
|
|||||||
Reference in New Issue
Block a user