FROM ubuntu:22.04 # 1. System Tools & Fluxbox Install karo (XFCE hata diya hai) ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ fluxbox \ xterm \ xvfb \ python3 \ python3-pip \ python3-tk \ python3-dev \ scrot \ imagemagick \ chromium-browser \ wget \ curl \ unzip \ zip \ x11-utils \ xdotool \ && apt-get clean # 2. Setup Directory WORKDIR /app # 3. Python Libs COPY requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt # 4. Set Display Env ENV DISPLAY=:99 # 5. Copy Files COPY . . # 6. Permissions RUN chmod +x start.sh RUN chmod -R 777 /app # 7. Expose Port EXPOSE 7860 # 8. Run CMD ["/bin/bash", "start.sh"]