From 25271bcf256d2813dc13e6b53395b8e7439765d8 Mon Sep 17 00:00:00 2001 From: Avika Trivedi <84050503+AvikaTrivedi@users.noreply.github.com> Date: Sat, 6 Apr 2024 18:56:11 +0530 Subject: [PATCH 1/4] Update Dockerfile kindly please use this configuration for better performance + u gotta install ffmpeg because not every hosting has one inbuilt --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05a8bd18..afc781e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM python:3.10.6-slim-buster - +FROM python:3.9 +RUN apt-get update -y && apt-get upgrade -y +RUN apt-get install ffmpeg -y WORKDIR . COPY . . - +RUN pip3 install setuptools +RUN pip3 install --no-cache-dir TgCrypto RUN pip3 install -r requirements.txt CMD ["python3", "bot.py"] - From 72c25b4ce99a4d32449d6cb90958e8ddd30f2da9 Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Sun, 28 Apr 2024 23:33:25 +0530 Subject: [PATCH 2/4] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index afc781e0..38e6e29c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ FROM python:3.9 + RUN apt-get update -y && apt-get upgrade -y RUN apt-get install ffmpeg -y + WORKDIR . COPY . . -RUN pip3 install setuptools -RUN pip3 install --no-cache-dir TgCrypto + RUN pip3 install -r requirements.txt CMD ["python3", "bot.py"] From ff02d2764f36c5ee14a9562ff5e2742839a8edde Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Sun, 28 Apr 2024 23:36:20 +0530 Subject: [PATCH 3/4] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 38e6e29c..7712f7a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM python:3.9 RUN apt-get update -y && apt-get upgrade -y RUN apt-get install ffmpeg -y +RUN apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR . COPY . . From 0247bcaf92c360bc351c6803932f6d3a226ddede Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Sun, 28 Apr 2024 23:37:46 +0530 Subject: [PATCH 4/4] fix codefactor err [#133] --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7712f7a0..38e6e29c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ FROM python:3.9 RUN apt-get update -y && apt-get upgrade -y RUN apt-get install ffmpeg -y -RUN apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR . COPY . .