The Free Software Media System - Server Backend & API
clean up how extracting tar is done; just put it in /usr/bin instead of symlinks; remove xz-utils after (cleaning up space); all at request of nvllsvm
bfayers4c03616affe9
diff --git a/Dockerfile b/Dockerfileindex 132e1d5cd8..ccb1364607 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,4 +1,5 @@ARG DOTNET_VERSION=2+ARG FFMPEG_URL=https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.0.3-64bit-static.tar.xzFROM microsoft/dotnet:${DOTNET_VERSION}-sdk as builderWORKDIR /repo@@ -13,15 +14,10 @@ EXPOSE 8096VOLUME /config /media-RUN apt update-RUN apt install -y wget xz-utils-RUN mkdir /ffmpeg-WORKDIR /ffmpeg-RUN wget https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.0.3-64bit-static.tar.xz-RUN tar xf /ffmpeg/ffmpeg-4.0.3-64bit-static.tar.xz-RUN ln -s /ffmpeg/ffmpeg-4.0.3-64bit-static/ffmpeg /usr/local/sbin/ffmpeg-RUN ln -s /ffmpeg/ffmpeg-4.0.3-64bit-static/ffprobe /usr/local/sbin/ffprobe-+RUN apt update \+ && apt install -y xz-utils \+ && curl ${FFMPEG_URL} | tar Jxf - -C /usr/bin --wildcards --strip-components=1 ffmpeg*/ffmpeg ffmpeg*/ffprobe \+ && apt remove -y xz-utilsENTRYPOINT if [ -n "$PUID$PGUID" ]; \then echo "PUID/PGID are deprecated. Use Docker user param." >&2; exit 1; \