From da24a80791f595d374e0e0780c4b4bd8967114b5 Mon Sep 17 00:00:00 2001 From: Devill Don <53294521+devillD@users.noreply.github.com> Date: Thu, 21 Apr 2022 14:00:34 +0600 Subject: [PATCH] Solved: No such file or directory: 'ffprobe' This worked in my case. Packages not gonna install: python3 and python3-pip. Already in the docker by default. Package not gonna install: ffmpeg. Already in the build-pack. Package removed: curl and xz-utils after building as we don't need them anymore. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1ea22905..de08f6d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,10 @@ FROM python:3.9.2-slim-buster RUN mkdir /app && chmod 777 /app WORKDIR /app ENV DEBIAN_FRONTEND=noninteractive -RUN apt -qq update && apt -qq install -y git python3 python3-pip ffmpeg +RUN apt -qq update && apt -qq install -y git curl xz-utils && \ + curl -o /bin/ffmpeg.tar.xz "https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz" && \ + cd /bin && tar xJf ffmpeg.tar.xz --strip-components=1 && \ + rm ffmpeg.tar.xz && apt remove -y curl xz-utils && apt clean all && rm -rf /var/cache/apt/* COPY . . RUN pip3 install --no-cache-dir -r requirements.txt CMD ["bash","convertor.sh"]