hamza2923 commited on
Commit
ce5833a
·
verified ·
1 Parent(s): 19a80b6

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +7 -7
dockerfile CHANGED
@@ -1,21 +1,21 @@
1
  FROM python:3.9-slim
2
 
3
- # Install system dependencies and Chrome
4
  RUN apt-get update && apt-get install -y \
5
  wget \
6
  gnupg \
 
 
 
 
 
 
7
  && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
8
  && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
9
  && apt-get update \
10
  && apt-get install -y google-chrome-stable \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Install ChromeDriver (specific version)
14
- RUN wget -q -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip \
15
- && unzip /tmp/chromedriver.zip -d /usr/bin/ \
16
- && chmod +x /usr/bin/chromedriver \
17
- && rm /tmp/chromedriver.zip
18
-
19
  WORKDIR /app
20
 
21
  COPY requirements.txt .
 
1
  FROM python:3.9-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  wget \
6
  gnupg \
7
+ unzip \
8
+ libx11-6 \
9
+ libnss3 \
10
+ libgconf-2-4 \
11
+ libfontconfig1 \
12
+ libxrender1 \
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 .