invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Enhancement] Cache VideoJS dependencies for docker to reduce build times

Open syeopite opened this issue 1 year ago • 2 comments

Is your enhancement request related to a problem? Please describe.

The Checking player dependencies part of compiling Invidious takes a huge amount of time on docker builds.

Describe the solution you'd like

The VideoJS dependencies should be cached to mitigate this problem. Although I'm not sure if the lengthy part comes from compiling the VideoJS dependency fetch script itself or from the actual fetching of the dependencies themselves from NPM.

This should be investigated

Describe alternatives you've considered

Additional context

syeopite avatar Aug 25 '24 20:08 syeopite

Yes, I was thinking about making that its own step in the makefile. That would also allow creating release tarballs (requested in #4672)

SamantazFox avatar Aug 27 '24 20:08 SamantazFox

Something like this? https://github.com/iv-org/invidious/pull/4300

syeopite avatar Aug 27 '24 21:08 syeopite