From ec25b08e08096ba3917eca8e10b27769a19a22b6 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 14 Oct 2020 18:39:04 -0700 Subject: [PATCH] Fix ffmpeg error with EROFS when transcoding --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc76bc9..240230a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,10 @@ RUN curl -sL https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_am ARG VERSION=2.4.0 -# install peertube -RUN curl -sL https://github.com/Chocobozzz/PeerTube/releases/download/v${VERSION}/peertube-v${VERSION}.tar.xz | tar --strip-components 1 -Jxvf - -RUN yarn install --production --pure-lockfile +# install peertube. the chown is required for some reason for ffmpeg. it fails with EROFS without it when transcoding +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 && \ + chown -R cloudron:cloudron /app/code/server RUN mkdir /app/code/cli && \ curl -L https://github.com/Chocobozzz/PeerTube/archive/v${VERSION}.tar.gz | tar -zxvf - --strip-components=1 -C /app/code/cli && \