Rahul-Samedavar commited on
Commit
9984dc0
·
1 Parent(s): d12e55c

added fixing google compatilibity

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -10
Dockerfile CHANGED
@@ -13,17 +13,9 @@ RUN wget -q -O /usr/share/keyrings/google-chrome.gpg https://dl.google.com/linux
13
  && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" \
14
  > /etc/apt/sources.list.d/google-chrome.list \
15
  && apt-get update \
16
- && apt-get install -y google-chrome-stable \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
- # Install ChromeDriver (matching Chrome version)
20
- RUN CHROME_VERSION=$(google-chrome --version | awk '{print $3}' | cut -d. -f1) \
21
- && DRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}") \
22
- && wget -O /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/${DRIVER_VERSION}/chromedriver_linux64.zip" \
23
- && unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
24
- && rm /tmp/chromedriver.zip \
25
- && chmod +x /usr/local/bin/chromedriver
26
-
27
  # Set up the working directory
28
  WORKDIR /code
29
 
@@ -38,4 +30,4 @@ COPY . /code/
38
  EXPOSE 7860
39
 
40
  # Command to run the application
41
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" \
14
  > /etc/apt/sources.list.d/google-chrome.list \
15
  && apt-get update \
16
+ && apt-get install -y google-chrome-stable chromedriver \
17
  && rm -rf /var/lib/apt/lists/*
18
 
 
 
 
 
 
 
 
 
19
  # Set up the working directory
20
  WORKDIR /code
21
 
 
30
  EXPOSE 7860
31
 
32
  # Command to run the application
33
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]