Akwbw commited on
Commit
138c8a0
·
verified ·
1 Parent(s): d8d4a85

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -23
Dockerfile CHANGED
@@ -1,52 +1,43 @@
1
  FROM ubuntu:22.04
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
-
5
- # 1. Install Dependencies & Desktop
6
  RUN apt-get update && apt-get install -y \
7
  xfce4 \
8
  xfce4-terminal \
9
  xvfb \
10
  python3 \
11
  python3-pip \
 
 
12
  scrot \
 
13
  wget \
14
  curl \
15
- gnupg \
16
- xauth \
17
- dbus-x11 \
18
  x11-utils \
19
- fonts-liberation \
20
- libu2f-udev \
21
- libvulkan1 \
22
  && apt-get clean
23
 
24
- # 2. Install Official Google Chrome (No Snap!)
25
- RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
26
- && apt install -y ./google-chrome-stable_current_amd64.deb \
27
- && rm google-chrome-stable_current_amd64.deb
28
-
29
- # 3. Setup App Directory
30
  WORKDIR /app
31
 
32
- # 4. Install Python Libs
33
  COPY requirements.txt .
34
  RUN pip3 install --no-cache-dir -r requirements.txt
35
 
36
- # 5. Env Vars
37
  ENV DISPLAY=:99
38
- ENV XAUTHORITY=/root/.Xauthority
39
 
40
- # 6. Auth Fix
41
- RUN touch /root/.Xauthority
42
-
43
- # 7. Copy Files
44
  COPY . .
45
 
46
- # 8. Permissions
47
  RUN chmod +x start.sh
48
  RUN chmod -R 777 /app
49
 
50
- # 9. Start
51
  EXPOSE 7860
 
 
52
  CMD ["/bin/bash", "start.sh"]
 
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
 
 
 
 
 
23
  WORKDIR /app
24
 
25
+ # 3. Python Libs
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"]