Firoj112 commited on
Commit
82f34df
·
verified ·
1 Parent(s): 7a81c80

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- #Install system dependencies
4
 
5
  RUN apt-get update && apt-get install -y
6
  wget
@@ -16,28 +16,29 @@ libxi6
16
  libgtk-3-0
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
- #Install Google Chrome
20
 
21
  RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
22
  && dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
23
  && rm google-chrome-stable_current_amd64.deb
24
 
25
- #Install ChromeDriver
26
 
27
  RUN CHROME_DRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)
28
  && wget -q https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P /tmp/
29
  && unzip -o /tmp/chromedriver_linux64.zip -d /tmp/
30
  && chmod +x /tmp/chromedriver
31
  && mv /tmp/chromedriver /usr/local/bin/chromedriver
 
32
  && rm /tmp/chromedriver_linux64.zip
33
 
34
- #Copy application files
35
 
36
  COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt
37
 
38
  COPY app.py .
39
 
40
- #Set environment variable to avoid buffering issues
41
 
42
  ENV PYTHONUNBUFFERED=1
43
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
 
5
  RUN apt-get update && apt-get install -y
6
  wget
 
16
  libgtk-3-0
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
+ # Install Google Chrome
20
 
21
  RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
22
  && dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
23
  && rm google-chrome-stable_current_amd64.deb
24
 
25
+ # Install ChromeDriver
26
 
27
  RUN CHROME_DRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)
28
  && wget -q https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P /tmp/
29
  && unzip -o /tmp/chromedriver_linux64.zip -d /tmp/
30
  && chmod +x /tmp/chromedriver
31
  && mv /tmp/chromedriver /usr/local/bin/chromedriver
32
+ && chmod 755 /usr/local/bin/chromedriver
33
  && rm /tmp/chromedriver_linux64.zip
34
 
35
+ # Copy application files
36
 
37
  COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt
38
 
39
  COPY app.py .
40
 
41
+ # Set environment variable to avoid buffering issues
42
 
43
  ENV PYTHONUNBUFFERED=1
44