Akwbw commited on
Commit
04a4aed
·
verified ·
1 Parent(s): a9f487c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,22 +1,24 @@
1
  FROM ubuntu:22.04
2
 
3
- # 1. Install System Tools & Desktop
4
  ENV DEBIAN_FRONTEND=noninteractive
5
  RUN apt-get update && apt-get install -y \
6
- xfce4 \
7
- xfce4-terminal \
8
  xvfb \
9
  python3 \
10
  python3-pip \
11
  python3-tk \
12
  python3-dev \
13
  scrot \
 
14
  chromium-browser \
15
  wget \
16
  curl \
17
  unzip \
18
  zip \
19
  x11-utils \
 
20
  && apt-get clean
21
 
22
  # 2. Setup Directory
@@ -26,18 +28,18 @@ WORKDIR /app
26
  COPY requirements.txt .
27
  RUN pip3 install --no-cache-dir -r requirements.txt
28
 
29
- # 4. Set Display Environment Variable (CRITICAL FIX)
30
  ENV DISPLAY=:99
31
 
32
  # 5. Copy Files
33
  COPY . .
34
 
35
- # 6. Permissions for start script
36
  RUN chmod +x start.sh
37
  RUN chmod -R 777 /app
38
 
39
  # 7. Expose Port
40
  EXPOSE 7860
41
 
42
- # 8. Run the Startup Script
43
  CMD ["/bin/bash", "start.sh"]
 
1
  FROM ubuntu:22.04
2
 
3
+ # 1. System Tools & Fluxbox Install karo (XFCE hata diya hai)
4
  ENV DEBIAN_FRONTEND=noninteractive
5
  RUN apt-get update && apt-get install -y \
6
+ fluxbox \
7
+ xterm \
8
  xvfb \
9
  python3 \
10
  python3-pip \
11
  python3-tk \
12
  python3-dev \
13
  scrot \
14
+ imagemagick \
15
  chromium-browser \
16
  wget \
17
  curl \
18
  unzip \
19
  zip \
20
  x11-utils \
21
+ xdotool \
22
  && apt-get clean
23
 
24
  # 2. Setup Directory
 
28
  COPY requirements.txt .
29
  RUN pip3 install --no-cache-dir -r requirements.txt
30
 
31
+ # 4. Set Display Env
32
  ENV DISPLAY=:99
33
 
34
  # 5. Copy Files
35
  COPY . .
36
 
37
+ # 6. Permissions
38
  RUN chmod +x start.sh
39
  RUN chmod -R 777 /app
40
 
41
  # 7. Expose Port
42
  EXPOSE 7860
43
 
44
+ # 8. Run
45
  CMD ["/bin/bash", "start.sh"]