randydev commited on
Commit
32dc33d
1 Parent(s): 097c714

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -24,15 +24,17 @@ RUN apt -qq update && \
24
  apt-get clean && \
25
  rm -rf /var/lib/apt/lists/
26
 
27
- RUN mkdir -p /app/.chrome-for-testing && \
28
- wget -O /app/.chrome-for-testing/chrome-linux64.zip https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/linux64/chrome-linux64.zip && \
29
- unzip /app/.chrome-for-testing/chrome-linux64.zip -d /app/.chrome-for-testing/
 
30
 
31
- RUN wget -O /app/.chrome-for-testing/chromedriver-linux64.zip https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/linux64/chromedriver-linux64.zip && \
32
- unzip /app/.chrome-for-testing/chromedriver-linux64.zip -d /app/.chrome-for-testing/
 
33
 
34
- ENV CHROME_BIN="/app/.chrome-for-testing/chrome-linux64/chrome"
35
- ENV CHROME_DRIVER="/app/.chrome-for-testing/chromedriver-linux64/chromedriver"
36
 
37
  WORKDIR /app
38
  WORKDIR /.cache
 
24
  apt-get clean && \
25
  rm -rf /var/lib/apt/lists/
26
 
27
+ RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
28
+ && dpkg -i google-chrome-stable_current_amd64.deb \
29
+ && apt-get -fy install \
30
+ && rm google-chrome-stable_current_amd64.deb
31
 
32
+ RUN wget -q https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip \
33
+ && unzip chromedriver_linux64.zip -d /usr/local/bin/ \
34
+ && rm chromedriver_linux64.zip
35
 
36
+ ENV CHROME_BIN = "/usr/bin/google-chrome"
37
+ ENV CHROME_DRIVER = "/usr/local/bin/chromedriver"
38
 
39
  WORKDIR /app
40
  WORKDIR /.cache