Remove unnecessary NPM_RUN_BUILD_OPTS docker arg
This commit is contained in:
parent
f8360396ff
commit
75b7117f07
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue