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 && \