1
0
Fork 0

Remove unnecessary NPM_RUN_BUILD_OPTS docker arg

This commit is contained in:
Chocobozzz 2022-01-06 10:37:49 +01:00
parent f8360396ff
commit 75b7117f07
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 7 deletions

View File

@ -229,7 +229,7 @@ class MuxingSession extends EventEmitter {
const playlistIdMatcher = /^([\d+])-/
const addHandler = async segmentPath => {
const addHandler = async (segmentPath: string) => {
logger.debug('Live add handler of %s.', segmentPath, this.lTags())
const playlistId = basename(segmentPath).match(playlistIdMatcher)[0]

View File

@ -1,10 +1,5 @@
FROM node:14-bullseye-slim
# Allow to pass extra options to the npm run build
# eg: --light --light-fr to not build all client languages
# (speed up build time if i18n is not required)
ARG NPM_RUN_BUILD_OPTS
# Install dependencies
RUN apt update \
&& apt install -y --no-install-recommends openssl ffmpeg python ca-certificates gnupg gosu build-essential curl \
@ -22,7 +17,7 @@ WORKDIR /app
USER peertube
RUN yarn install --pure-lockfile --network-timeout 1200000 --network-concurrency 20 \
&& npm run build -- $NPM_RUN_BUILD_OPTS \
&& npm run build \
&& rm -r ./node_modules ./client/node_modules ./client/.angular \
&& yarn install --pure-lockfile --production --network-timeout 1200000 --network-concurrency 20 \
&& yarn cache clean