Fix ffmpeg error with EROFS when transcoding

This commit is contained in:
Girish Ramakrishnan 2020-10-14 18:39:04 -07:00
parent 4bf2d3c48f
commit ec25b08e08

View file

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