From b2a4d6105efae2b521dd55680abf1f4e619b1b25 Mon Sep 17 00:00:00 2001 From: KSKOP69 <123794242+KSKOP69@users.noreply.github.com> Date: Sat, 2 Nov 2024 11:31:09 +0530 Subject: [PATCH] Better --- Dockerfile | 19 +++++++++---------- requirements.txt | 3 +-- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index a29eacba..39790902 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ -FROM python:3.12-slim-bullseye +FROM python:3.9-slim-buster -WORKDIR /AlexaMusic -RUN chmod 777 /AlexaMusic +RUN apt-get update -y && apt-get upgrade -y \ + && apt-get install -y --no-install-recommends ffmpeg \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y git gcc build-essential \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* -RUN apt-get -qq update && apt-get -qq -y upgrade -RUN apt-get install -y --no-install-recommends ffmpeg -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git gcc build-essential +WORKDIR /app +COPY . /app -RUN pip3 install -U pip -COPY requirements.txt . +RUN pip3 install --upgrade pip RUN pip3 install --no-cache-dir -U -r requirements.txt -COPY . . - CMD ["bash", "start"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index a9a0f5da..45e356b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,12 +15,11 @@ py-tgcalls==2.0.2 pykeyboard pyrotgfork>=2.1.33.12 python-dotenv -pyyaml==5.3.1 +pyyaml requests speedtest-cli spotipy PyTgCrypto unidecode yt-dlp -youtube-search youtube-search-python \ No newline at end of file