adityaiiitr commited on
Commit
6ab4554
·
verified ·
1 Parent(s): 60b9061

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -1
Dockerfile CHANGED
@@ -10,7 +10,20 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- RUN playwright install
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  # Expose the port the app runs on
16
  EXPOSE 7860
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Download and install Chrome WebDriver
14
+ RUN apt-get update && \
15
+ apt-get install -y wget unzip && \
16
+ wget -q -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/94.0.4606.61/chromedriver_linux64.zip && \
17
+ unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ && \
18
+ rm /tmp/chromedriver.zip && \
19
+ apt-get remove -y wget unzip && \
20
+ rm -rf /var/lib/apt/lists/*
21
+
22
+ RUN playwright install chromium
23
+
24
+ # Make Chrome use the custom Chromium install
25
+ ENV CHROME_BIN=/usr/bin/chromium
26
+ ENV CHROME_PATH=/usr/lib/chromium/
27
 
28
  # Expose the port the app runs on
29
  EXPOSE 7860