diff --git a/Dockerfile b/Dockerfile index 6a255ee..8f2a774 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,8 @@ -FROM python:3.9.7-slim-buster - -RUN apt-get update && apt-get upgrade -y && \ - apt-get install -y nodejs \ - npm -RUN apt-get install npm -y -RUN apt-get install git curl python3-pip ffmpeg -y -RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - -RUN apt-get install -y nodejs -RUN npm install -g npm@7.22.0 -RUN npm i -g npm - +FROM nikolaik/python-nodejs:python3.10-nodejs17 +RUN apt-get update && apt-get upgrade -y +RUN apt-get install ffmpeg -y COPY . /py WORKDIR /py - -RUN pip3 install --upgrade pip -RUN pip3 install -r requirements.txt - +RUN pip3 install -U pip +RUN pip3 install -U -r requirements.txt CMD python3 -m program diff --git a/requirements.txt b/requirements.txt index ec7ab99..fb79f42 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,8 +3,8 @@ asyncio ffmpeg-python py-tgcalls==0.8.1rc1 git+https://github.com/pyrogram/pyrogram@master -youtube_search_python -youtube_search +youtube-search-python +youtube-search httpx==0.13.3 python-dotenv aiofiles