This commit is contained in:
Girish Ramakrishnan 2022-04-29 14:30:58 -07:00
parent 814c3b4ca8
commit 7776e981c3

View file

@ -16,9 +16,11 @@ RUN curl -sL https://github.com/Chocobozzz/PeerTube/releases/download/v${VERSION
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
# CLI patch for https://github.com/Chocobozzz/PeerTube/issues/4858
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 && \
cd /app/code/cli && \
curl -L https://github.com/Chocobozzz/PeerTube/commit/74220dba9db6a1dc5c0b504b0230de26ef9c9dd5.patch -o /tmp/cli.patch && patch -p1 < /tmp/cli.patch && rm /tmp/cli.patch && \
NOCLIENT=1 yarn install --pure-lockfile && \
npm run setup:cli