Uhhy commited on
Commit
14b74af
·
verified ·
1 Parent(s): 2bc1786

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -24,7 +24,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
24
  xdg-utils \
25
  libu2f-udev \
26
  libvulkan1 \
27
- curl \
28
  && rm -rf /var/lib/apt/lists/*
29
 
30
  # Install Google Chrome
@@ -36,6 +35,12 @@ RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd
36
  # Check Chrome version
37
  RUN google-chrome --version
38
 
 
 
 
 
 
 
39
  # Copy application files
40
  COPY requirements.txt .
41
  COPY app.py .
 
24
  xdg-utils \
25
  libu2f-udev \
26
  libvulkan1 \
 
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
  # Install Google Chrome
 
35
  # Check Chrome version
36
  RUN google-chrome --version
37
 
38
+ # Crear el directorio de caché para Selenium y darle permisos
39
+ RUN mkdir -p /root/.cache/selenium && chmod -R 777 /root/.cache/selenium
40
+
41
+ # Establecer la variable de entorno para cambiar el directorio de caché de Selenium
42
+ ENV XDG_CACHE_HOME=/root/.cache
43
+
44
  # Copy application files
45
  COPY requirements.txt .
46
  COPY app.py .