ByFlown commited on
Commit
6134c76
·
verified ·
1 Parent(s): 7675667

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- # Use Ubuntu as the base image for better dependency support
2
  FROM ubuntu:20.04
3
 
4
  # Set working directory
@@ -7,8 +7,6 @@ WORKDIR /app
7
  # Set environment variables to avoid interactive prompts
8
  ENV DEBIAN_FRONTEND=noninteractive
9
 
10
- RUN rm -rf /home/user/.cache/selenium
11
-
12
  # Install system dependencies for Chrome and ChromeDriver
13
  RUN apt-get update && apt-get install -y \
14
  wget \
@@ -52,6 +50,9 @@ RUN CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+') \
52
  && chmod +x /usr/local/bin/chromedriver \
53
  && rm chromedriver_linux64.zip
54
 
 
 
 
55
  # Copy requirements and install Python dependencies
56
  COPY requirements.txt .
57
  RUN pip3 install --no-cache-dir -r requirements.txt
 
1
+ # Fresh build 2025-04-23 v3 to force rebuild
2
  FROM ubuntu:20.04
3
 
4
  # Set working directory
 
7
  # Set environment variables to avoid interactive prompts
8
  ENV DEBIAN_FRONTEND=noninteractive
9
 
 
 
10
  # Install system dependencies for Chrome and ChromeDriver
11
  RUN apt-get update && apt-get install -y \
12
  wget \
 
50
  && chmod +x /usr/local/bin/chromedriver \
51
  && rm chromedriver_linux64.zip
52
 
53
+ # Clear Selenium cache to avoid outdated ChromeDriver
54
+ RUN rm -rf /home/user/.cache/selenium
55
+
56
  # Copy requirements and install Python dependencies
57
  COPY requirements.txt .
58
  RUN pip3 install --no-cache-dir -r requirements.txt