THEZYZSTUDIO commited on
Commit
922f08e
·
verified ·
1 Parent(s): 595b112

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
4
  ENV DISPLAY=:1
5
  ENV LC_ALL=C.UTF-8
6
 
7
- # Base packages
8
  RUN apt-get update && apt-get install -y \
9
  python3 python3-pip \
10
  xvfb \
@@ -14,22 +14,15 @@ RUN apt-get update && apt-get install -y \
14
  xclip \
15
  xauth \
16
  x11-utils \
 
17
  imagemagick \
18
  fonts-noto \
19
  curl wget ca-certificates \
20
- software-properties-common \
21
- && apt-get clean && rm -rf /var/lib/apt/lists/*
22
-
23
- # Install Firefox from Mozilla PPA (stable on Ubuntu 22.04)
24
- RUN add-apt-repository ppa:mozillateam/ppa -y \
25
- && echo 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' \
26
- > /etc/apt/preferences.d/mozilla-firefox \
27
- && apt-get update \
28
- && apt-get install -y firefox \
29
  && apt-get clean && rm -rf /var/lib/apt/lists/*
30
 
31
  # Verify firefox installed correctly
32
- RUN which firefox && firefox --version || echo "Firefox installed"
33
 
34
  # Python dependencies
35
  COPY requirements.txt /app/requirements.txt
 
4
  ENV DISPLAY=:1
5
  ENV LC_ALL=C.UTF-8
6
 
7
+ # Base packages + Firefox ESR مباشرة بدون PPA
8
  RUN apt-get update && apt-get install -y \
9
  python3 python3-pip \
10
  xvfb \
 
14
  xclip \
15
  xauth \
16
  x11-utils \
17
+ x11-xserver-utils \
18
  imagemagick \
19
  fonts-noto \
20
  curl wget ca-certificates \
21
+ firefox-esr \
 
 
 
 
 
 
 
 
22
  && apt-get clean && rm -rf /var/lib/apt/lists/*
23
 
24
  # Verify firefox installed correctly
25
+ RUN firefox-esr --version || echo "Firefox ESR installed"
26
 
27
  # Python dependencies
28
  COPY requirements.txt /app/requirements.txt