From 87cf953707a2eb07776b06d7a09a188c63425a60 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 15 Oct 2020 17:28:27 -0700 Subject: [PATCH] Set cwd as tmp dir when transcoding https://github.com/Chocobozzz/PeerTube/pull/3198 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 240230a..b2a694d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,10 @@ RUN curl -sL https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_am ARG VERSION=2.4.0 # install peertube. the chown is required for some reason for ffmpeg. it fails with EROFS without it when transcoding +# the transcoding patch is at https://github.com/Chocobozzz/PeerTube/pull/3198 RUN curl -sL https://github.com/Chocobozzz/PeerTube/releases/download/v${VERSION}/peertube-v${VERSION}.tar.xz | tar --strip-components 1 -Jxvf - && \ yarn install --production --pure-lockfile && \ + sed -e 's/niceness: constants_1.FFMPEG_NICE.TRANSCODING/niceness: constants_1.FFMPEG_NICE.TRANSCODING, cwd: config_1.CONFIG.STORAGE.TMP_DIR/' -i /app/code/server/dist/server/helpers/ffmpeg-utils.js && \ chown -R cloudron:cloudron /app/code/server RUN mkdir /app/code/cli && \