ParaaAi commited on
Commit
0c8fed5
·
verified ·
1 Parent(s): 40bb7a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -14
Dockerfile CHANGED
@@ -5,6 +5,19 @@ USER root
5
  RUN mkdir -p /data && chown -R pwuser:pwuser /data
6
  WORKDIR /home/pwuser/app
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  # Instala o Xvfb (monitor virtual) e dependências
9
  RUN apt-get update && apt-get install -y xvfb x11-utils
10
 
@@ -17,20 +30,6 @@ RUN apt-get update && apt-get install -y wget gnupg \
17
  RUN pip install nodriver opencv-python
18
 
19
 
20
- USER root
21
- RUN apt-get update && apt-get install -y --no-install-recommends \
22
- chromium \
23
- xvfb \
24
- fonts-liberation \
25
- libnss3 \
26
- libatk-bridge2.0-0 \
27
- libgtk-3-0 \
28
- libgbm1 \
29
- libasound2 \
30
- ca-certificates \
31
- && rm -rf /var/lib/apt/lists/*
32
- USER pwuser
33
-
34
  # Instala a biblioteca de resolução de desafios
35
  RUN pip install --no-cache-dir git+https://github.com/omegastrux/nodriver-cf-verify.git
36
 
 
5
  RUN mkdir -p /data && chown -R pwuser:pwuser /data
6
  WORKDIR /home/pwuser/app
7
 
8
+ # O Chromium NÃO está disponível no apt do Ubuntu 22.04.
9
+ # A base do Playwright já possui o Google Chrome e todas as libs necessárias.
10
+ # Instalamos apenas o Xvfb e utilitários de X11 para rodar o Chrome em modo "visível" dentro do container.
11
+ USER root
12
+ RUN apt-get update && apt-get install -y --no-install-recommends \
13
+ xvfb \
14
+ x11-utils \
15
+ fonts-liberation \
16
+ && rm -rf /var/lib/apt/lists/*
17
+ USER pwuser
18
+
19
+
20
+
21
  # Instala o Xvfb (monitor virtual) e dependências
22
  RUN apt-get update && apt-get install -y xvfb x11-utils
23
 
 
30
  RUN pip install nodriver opencv-python
31
 
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  # Instala a biblioteca de resolução de desafios
34
  RUN pip install --no-cache-dir git+https://github.com/omegastrux/nodriver-cf-verify.git
35