diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..656fcbd --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +build-container: + docker build -t streaming-community-api . + +run-container: + docker run --rm -it -p 8000:8000 -v ${LOCAL_DIR}:/app/Video -v ./config.json:/app/config.json streaming-community-api diff --git a/config.json b/config.json index 169c218..3f6bb79 100644 --- a/config.json +++ b/config.json @@ -18,7 +18,7 @@ }, "M3U8_DOWNLOAD": { "tdqm_workers": 2, - "tqdm_delay": 0.01, + "tqdm_delay": 0.6, "tqdm_use_large_bar": true, "download_video": true, "download_audio": true, diff --git a/dockerfile b/dockerfile index ff5a582..9522fb3 100644 --- a/dockerfile +++ b/dockerfile @@ -1,8 +1,5 @@ FROM python:3.11-slim -COPY . /app -WORKDIR /app - ENV TEMP /tmp RUN mkdir -p $TEMP @@ -13,7 +10,11 @@ RUN apt-get update && apt-get install -y \ libffi-dev \ python3-dev \ libxml2-dev \ - libxslt1-dev + libxslt1-dev \ + nodejs + +COPY . /app +WORKDIR /app RUN pip install --no-cache-dir -r requirements.txt