Alvin3y1 commited on
Commit
36acdf5
·
verified ·
1 Parent(s): e0a6159

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
  FROM python:3.11-slim-bookworm
2
 
3
  # 1. Install System Dependencies
4
- # We include Xvfb for the virtual screen and libxtst6 for input injection (xtest)
5
  RUN apt-get update && apt-get install -y \
6
  xvfb \
7
  wget \
8
  curl \
9
  gnupg \
 
10
  libx11-6 \
11
  libxtst6 \
12
  libxext6 \
@@ -23,6 +23,7 @@ RUN apt-get update && apt-get install -y \
23
  libpangocairo-1.0-0 \
24
  libgtk-3-0 \
25
  fonts-liberation \
 
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
  # 2. Install Opera Browser
@@ -37,7 +38,6 @@ RUN useradd -m -u 1000 user
37
  WORKDIR /home/user/app
38
 
39
  # 4. Install Python Libraries
40
- # Added 'mss' for capture and 'python-xlib' for the hooking/input injection
41
  RUN pip3 install --no-cache-dir \
42
  aiortc \
43
  aiohttp \
@@ -56,5 +56,4 @@ ENV PYTHONUNBUFFERED=1
56
 
57
  EXPOSE 7860
58
 
59
- # Ensure the script is executed directly
60
  CMD ["python3", "app.py"]
 
1
  FROM python:3.11-slim-bookworm
2
 
3
  # 1. Install System Dependencies
 
4
  RUN apt-get update && apt-get install -y \
5
  xvfb \
6
  wget \
7
  curl \
8
  gnupg \
9
+ procps \
10
  libx11-6 \
11
  libxtst6 \
12
  libxext6 \
 
23
  libpangocairo-1.0-0 \
24
  libgtk-3-0 \
25
  fonts-liberation \
26
+ xdg-utils \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
  # 2. Install Opera Browser
 
38
  WORKDIR /home/user/app
39
 
40
  # 4. Install Python Libraries
 
41
  RUN pip3 install --no-cache-dir \
42
  aiortc \
43
  aiohttp \
 
56
 
57
  EXPOSE 7860
58
 
 
59
  CMD ["python3", "app.py"]