THEZYZSTUDIO commited on
Commit
9c3490c
·
verified ·
1 Parent(s): 892b250

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -2,16 +2,13 @@ FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV DISPLAY=:1
5
- ENV LANG=ar_AE.UTF-8
6
- ENV LANGUAGE=ar_AE:ar
7
  ENV LC_ALL=C.UTF-8
8
 
9
- # Install all required packages
10
  RUN apt-get update && apt-get install -y \
11
  python3 python3-pip \
12
  xvfb \
13
  fluxbox \
14
- firefox-esr \
15
  scrot \
16
  xdotool \
17
  xclip \
@@ -19,8 +16,16 @@ RUN apt-get update && apt-get install -y \
19
  x11-utils \
20
  imagemagick \
21
  fonts-noto \
22
- fonts-noto-cjk \
23
  curl wget ca-certificates \
 
 
 
 
 
 
 
 
 
24
  && apt-get clean && rm -rf /var/lib/apt/lists/*
25
 
26
  # Python dependencies
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV DISPLAY=:1
 
 
5
  ENV LC_ALL=C.UTF-8
6
 
7
+ # Base packages (no firefox-esr — not in Ubuntu 22.04 repos)
8
  RUN apt-get update && apt-get install -y \
9
  python3 python3-pip \
10
  xvfb \
11
  fluxbox \
 
12
  scrot \
13
  xdotool \
14
  xclip \
 
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 (works 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
  # Python dependencies