hamza2923 commited on
Commit
48ee87c
·
verified ·
1 Parent(s): b31a5e2

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +8 -1
dockerfile CHANGED
@@ -13,9 +13,16 @@ RUN apt-get update && apt-get install -y \
13
  && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
14
  && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
15
  && apt-get update \
16
- && apt-get install -y google-chrome-stable \
17
  && rm -rf /var/lib/apt/lists/*
18
 
 
 
 
 
 
 
 
19
  WORKDIR /app
20
 
21
  COPY requirements.txt .
 
13
  && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
14
  && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
15
  && apt-get update \
16
+ && apt-get install -y google-chrome-stable=126.0.6478.182-1 \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
+ # Install ChromeDriver (version compatible with Chrome 126)
20
+ RUN wget -q -O /tmp/chromedriver.zip https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/126.0.6478.182/linux64/chromedriver-linux64.zip \
21
+ && unzip /tmp/chromedriver.zip -d /usr/bin/ \
22
+ && mv /usr/bin/chromedriver-linux64/chromedriver /usr/bin/chromedriver \
23
+ && chmod +x /usr/bin/chromedriver \
24
+ && rm -rf /tmp/chromedriver.zip /usr/bin/chromedriver-linux64
25
+
26
  WORKDIR /app
27
 
28
  COPY requirements.txt .