From 469af6b9d774b582f08f1100f99a9b01b7a8129a Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 15 Jan 2024 10:42:34 +0000 Subject: [PATCH] Add even more dependencies --- Dockerfile | 54 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7ec599a..eb89805 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,50 @@ -# FROM python:3.11-bookworm -FROM ubuntu:latest +FROM python:3.11-bookworm WORKDIR /app RUN DEBIAN_FRONTEND=noninteractive apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y + +# Install chrome dependencies +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ +gconf-service \ +libasound2 \ +libatk1.0-0 \ +libc6 \ +libcairo2 \ +libcups2 \ +libdbus-1-3 \ +libexpat1 \ +libfontconfig1 \ +libgcc1 \ +libgconf-2-4 \ +libgdk-pixbuf2.0-0 \ +libglib2.0-0 \ +libgtk-3-0 \ +libnspr4 \ +libpango-1.0-0 \ +libpangocairo-1.0-0 \ +libstdc++6 \ +libx11-6 \ +libx11-xcb1 \ +libxcb1 \ +libxcomposite1 \ +libxcursor1 \ +libxdamage1 \ +libxext6 \ +libxfixes3 \ +libxi6 \ +libxrandr2 \ +libxrender1 \ +libxss1 \ +libxtst6 \ +ca-certificates \ +fonts-liberation \ +libappindicator1 \ +libnss3 \ +lsb-release \ +xdg-utils + RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ traceroute \ iputils-ping \ @@ -20,15 +60,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ python3 \ python3-pip \ python3-dev \ - python3-virtualenv \ - # libglib2.0-0=2.50.3-2 \ - # libnss3=2:3.26.2-1.1+deb9u1 \ - # libgconf-2-4=3.2.6-4+b1 \ - # libfontconfig1=2.11.0-6.7+b1 - libglib2.0-0 \ - libnss3 \ - libgconf-2-4 \ - libfontconfig1 + python3-virtualenv RUN virtualenv /app/venv RUN /app/venv/bin/pip install --upgrade --no-input pip wheel setuptools