This is video downloader using pytube. It downloads file in the DASH format (seperate audio and video file and stich to gather using a ffmpeg to final video file.)
docker build --pull --rm -f 'Dockerfile' -t 'youtubedownloader:latest' '.'
docker run --platform linux/amd64 -it -v ${pwd}:/app/downloads -p 9000:8080 youtubedownloade
Invoke-WebRequest -Uri "http://localhost:9000/2015-03-31/functions/function/invocations" -Method Post -Body '{"url":"https://www.youtube.com/watch?v=QkdkLdMBuL0"}' -ContentType "application/json"