Use the static_ffmpeg installation instead of apt ffmpeg

This commit is contained in:
Totonyus 2024-05-30 18:44:33 +02:00
parent bf8ae36bec
commit bae41bd34b
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@ ENV UID=1000 GID=1000 GIT_BRANCH=$GIT_BRANCH GIT_REVISION=$GIT_REVISION DATE=$DA
VOLUME ["/app/params", "/app/data", "/app/downloads", "/app/logs"]
EXPOSE 80
RUN apt update && apt install ffmpeg -y
# RUN pip install static-ffmpeg ffmpeg
RUN pip install static-ffmpeg && static_ffmpeg; ln -s /usr/local/lib/python3.12/site-packages/static_ffmpeg/bin/linux/ffmpeg /usr/bin/ffmpeg
RUN if [ "$TARGET_ARCH" = "arm" ] ; then apt install gcc python3-dev -y && apt-get autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/*; fi
COPY --chmod=755 entrypoint.sh ./