Neurolingua
commited on
Commit
•
b4f8fa3
1
Parent(s):
0785d60
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
@@ -25,13 +25,12 @@ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add
|
|
25 |
&& rm -rf /var/lib/apt/lists/*
|
26 |
|
27 |
# Install ChromeDriver that matches the installed Chrome version
|
28 |
-
|
29 |
-
|
30 |
-
&&
|
31 |
-
&& wget -O /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip" \
|
32 |
&& unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
|
33 |
-
&& rm /tmp/chromedriver.zip
|
34 |
-
|
35 |
WORKDIR /code
|
36 |
RUN mkdir -p /code/uploads && chmod 755 /code/uploads
|
37 |
|
|
|
25 |
&& rm -rf /var/lib/apt/lists/*
|
26 |
|
27 |
# Install ChromeDriver that matches the installed Chrome version
|
28 |
+
RUN CHROME_VERSION=$(google-chrome --version | awk '{print $3}' | cut -d '.' -f 1) \
|
29 |
+
&& CHROMEDRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION") \
|
30 |
+
&& wget -O /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" \
|
|
|
31 |
&& unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
|
32 |
+
&& rm /tmp/chromedriver.zip \
|
33 |
+
&& chmod +x /usr/local/bin/chromedriver
|
34 |
WORKDIR /code
|
35 |
RUN mkdir -p /code/uploads && chmod 755 /code/uploads
|
36 |
|