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