From 28b56833e05a5e95d5499dfbf0179411e3dd5693 Mon Sep 17 00:00:00 2001 From: acoolvoice03-ops Date: Sun, 11 Jan 2026 16:02:37 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 29db8444..0d8e69c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,26 @@ # Subscribe YouTube Channel For Amazing Bot @Tech_VJ # Ask Doubt on telegram @KingVJ01 -FROM python:3.10.8-slim-buster +FROM python:3.10-slim-bullseye -RUN apt update && apt upgrade -y -RUN apt install git -y -COPY requirements.txt /requirements.txt +# Install system dependencies +RUN apt-get update && apt-get upgrade -y \ + && apt-get install -y git \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* -RUN cd / -RUN pip3 install -U pip && pip3 install -U -r requirements.txt -RUN mkdir /VJ-File-Store +# Set working directory WORKDIR /VJ-File-Store -COPY . /VJ-File-Store + +# Copy requirements first (better caching) +COPY requirements.txt . + +# Install Python dependencies +RUN pip install --no-cache-dir -U pip \ + && pip install --no-cache-dir -r requirements.txt + +# Copy project files +COPY . . + +# Start bot CMD ["python", "bot.py"]