Spaces:
Runtime error
Runtime error
lucianotonet
commited on
Commit
•
952d701
1
Parent(s):
2247fac
chore: Update Dockerfile to use latest version of ChromeDriver
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use a imagem base do Python
|
2 |
-
FROM python:3.9
|
3 |
|
4 |
# Instalar o Chrome e suas dependências
|
5 |
RUN apt-get update && apt-get install -y \
|
@@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
# Instalar o ChromeDriver
|
15 |
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/126.0.6478.63/chromedriver_linux64.zip \
|
16 |
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ \
|
17 |
-
&& rm /tmp/chromedriver.zip
|
18 |
|
19 |
# Criar um usuário não root
|
20 |
RUN useradd -m -u 1000 user
|
|
|
1 |
# Use a imagem base do Python
|
2 |
+
FROM docker.io/library/python:3.9@sha256:2016df4760e0081ecc2c0f731f51f42f16c26a96fb86dc64b0696f192d940cbc
|
3 |
|
4 |
# Instalar o Chrome e suas dependências
|
5 |
RUN apt-get update && apt-get install -y \
|
|
|
14 |
# Instalar o ChromeDriver
|
15 |
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/126.0.6478.63/chromedriver_linux64.zip \
|
16 |
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ \
|
17 |
+
&& rm /tmp/chromedriver.zip || true
|
18 |
|
19 |
# Criar um usuário não root
|
20 |
RUN useradd -m -u 1000 user
|