Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +23 -15
Dockerfile
CHANGED
|
@@ -1,28 +1,36 @@
|
|
| 1 |
-
FROM python:3.9
|
| 2 |
|
| 3 |
-
# Instalar depend锚ncias
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
wget \
|
| 6 |
-
gnupg \
|
| 7 |
-
unzip \
|
| 8 |
curl \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
--no-install-recommends
|
| 10 |
|
| 11 |
-
#
|
| 12 |
-
RUN wget
|
| 13 |
-
&&
|
| 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
|
| 22 |
RUN pip install selenium requests webdriver-manager
|
| 23 |
|
| 24 |
WORKDIR /app
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
-
# Comando para
|
| 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"]
|