simoncck commited on
Commit
42c4fe4
·
verified ·
1 Parent(s): 049a7e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -29,21 +29,19 @@ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add
29
  && apt-get install -y google-chrome-stable \
30
  && rm -rf /var/lib/apt/lists/*
31
 
32
- # Install ChromeDriver
33
- RUN CHROME_VERSION=$(google-chrome --version | cut -d " " -f3 | cut -d "." -f1) \
34
- && CHROMEDRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}") \
35
- && wget -O /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" \
36
- && unzip /tmp/chromedriver.zip -d /tmp/ \
37
- && mv /tmp/chromedriver /usr/local/bin/chromedriver \
38
- && chmod +x /usr/local/bin/chromedriver \
39
- && rm /tmp/chromedriver.zip
40
-
41
  # Copy requirements file
42
  COPY requirements.txt .
43
 
44
  # Install Python dependencies
45
  RUN pip install --no-cache-dir -r requirements.txt
46
 
 
 
 
 
 
 
 
47
  # Install Playwright browsers
48
  RUN playwright install chromium
49
  RUN playwright install-deps
 
29
  && apt-get install -y google-chrome-stable \
30
  && rm -rf /var/lib/apt/lists/*
31
 
 
 
 
 
 
 
 
 
 
32
  # Copy requirements file
33
  COPY requirements.txt .
34
 
35
  # Install Python dependencies
36
  RUN pip install --no-cache-dir -r requirements.txt
37
 
38
+ # Install Python dependencies
39
+ COPY requirements.txt .
40
+ RUN pip install --no-cache-dir -r requirements.txt
41
+
42
+ # Let Selenium auto-download the correct driver
43
+ ENV SELENIUM_MANAGER_DRIVER=1
44
+
45
  # Install Playwright browsers
46
  RUN playwright install chromium
47
  RUN playwright install-deps