Spaces:
No application file
No application file
Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
|
@@ -18,14 +18,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 18 |
&& apt-get install -y google-chrome-stable \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
-
# Install ChromeDriver
|
| 22 |
-
RUN
|
| 23 |
-
&&
|
| 24 |
-
&&
|
| 25 |
-
&&
|
| 26 |
-
&& mv
|
| 27 |
-
&& chmod +x /usr/local/bin/chromedriver
|
| 28 |
-
&& rm /tmp/chromedriver.zip
|
| 29 |
|
| 30 |
# Set working directory
|
| 31 |
WORKDIR /app
|
|
|
|
| 18 |
&& apt-get install -y google-chrome-stable \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
+
# Install ChromeDriver
|
| 22 |
+
RUN CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` \
|
| 23 |
+
&& wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \
|
| 24 |
+
&& unzip chromedriver_linux64.zip \
|
| 25 |
+
&& rm chromedriver_linux64.zip \
|
| 26 |
+
&& mv chromedriver /usr/local/bin/chromedriver \
|
| 27 |
+
&& chmod +x /usr/local/bin/chromedriver
|
|
|
|
| 28 |
|
| 29 |
# Set working directory
|
| 30 |
WORKDIR /app
|