mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-11-25 02:51:16 +00:00
Set cwd as tmp dir when transcoding
https://github.com/Chocobozzz/PeerTube/pull/3198
This commit is contained in:
parent
146532d9cd
commit
87cf953707
1 changed files with 2 additions and 0 deletions
|
@ -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
|
ARG VERSION=2.4.0
|
||||||
|
|
||||||
# install peertube. the chown is required for some reason for ffmpeg. it fails with EROFS without it when transcoding
|
# 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 - && \
|
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 && \
|
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
|
chown -R cloudron:cloudron /app/code/server
|
||||||
|
|
||||||
RUN mkdir /app/code/cli && \
|
RUN mkdir /app/code/cli && \
|
||||||
|
|
Loading…
Reference in a new issue