Set cwd as tmp dir when transcoding

https://github.com/Chocobozzz/PeerTube/pull/3198
This commit is contained in:
Girish Ramakrishnan 2020-10-15 17:28:27 -07:00
parent 146532d9cd
commit 87cf953707

View file

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