Erinaldordso commited on
Commit
eaf4d1a
路
verified 路
1 Parent(s): 96b884c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -15
Dockerfile CHANGED
@@ -1,28 +1,36 @@
1
- FROM python:3.9
2
 
3
- # Instalar depend锚ncias b谩sicas
4
  RUN apt-get update && apt-get install -y \
5
  wget \
6
- gnupg \
7
- unzip \
8
  curl \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  --no-install-recommends
10
 
11
- # Adicionar o reposit贸rio do Google Chrome
12
- RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
13
- && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/list.d/google.list
14
-
15
- # Instalar o Chrome
16
- RUN apt-get update && apt-get install -y \
17
- google-chrome-stable \
18
- --no-install-recommends \
19
- && rm -rf /var/lib/apt/lists/*
20
 
21
- # Instalar bibliotecas Python necess谩rias
22
  RUN pip install selenium requests webdriver-manager
23
 
24
  WORKDIR /app
25
  COPY . .
26
 
27
- # Comando para rodar o bot
28
  CMD ["python", "main.py"]
 
1
+ FROM python:3.9-slim
2
 
3
+ # Instalar depend锚ncias necess谩rias para o Chrome e Selenium
4
  RUN apt-get update && apt-get install -y \
5
  wget \
 
 
6
  curl \
7
+ unzip \
8
+ libgconf-2-4 \
9
+ libnss3 \
10
+ libxss1 \
11
+ libasound2 \
12
+ libatk1.0-0 \
13
+ libc6 \
14
+ ca-certificates \
15
+ fonts-liberation \
16
+ libappindicator3-1 \
17
+ libxdamage1 \
18
+ libgbm1 \
19
+ libpango-1.0-0 \
20
+ libpangocairo-1.0-0 \
21
+ xdg-utils \
22
  --no-install-recommends
23
 
24
+ # Instalar o Google Chrome de forma direta
25
+ RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
26
+ && apt-get install -y ./google-chrome-stable_current_amd64.deb \
27
+ && rm google-chrome-stable_current_amd64.deb
 
 
 
 
 
28
 
29
+ # Instalar bibliotecas Python
30
  RUN pip install selenium requests webdriver-manager
31
 
32
  WORKDIR /app
33
  COPY . .
34
 
35
+ # Comando para iniciar o bot profissional
36
  CMD ["python", "main.py"]