Spaces:
Build error
Build error
Update dockerfile
Browse files- dockerfile +3 -3
dockerfile
CHANGED
|
@@ -19,15 +19,15 @@ RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd6
|
|
| 19 |
dpkg -i google-chrome-stable_current_amd64.deb || apt-get -fy install && \
|
| 20 |
rm google-chrome-stable_current_amd64.deb
|
| 21 |
|
| 22 |
-
|
| 23 |
-
RUN CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+') && \
|
| 24 |
echo "Using Chrome version: $CHROME_VERSION" && \
|
| 25 |
-
wget -q -O /tmp/chromedriver.zip "https://
|
| 26 |
unzip /tmp/chromedriver.zip -d /tmp/ && \
|
| 27 |
mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver && \
|
| 28 |
chmod +x /usr/local/bin/chromedriver && \
|
| 29 |
rm -rf /tmp/chromedriver*
|
| 30 |
|
|
|
|
| 31 |
# Install Python dependencies
|
| 32 |
COPY requirements.txt .
|
| 33 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 19 |
dpkg -i google-chrome-stable_current_amd64.deb || apt-get -fy install && \
|
| 20 |
rm google-chrome-stable_current_amd64.deb
|
| 21 |
|
| 22 |
+
RUN CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+\.\d+') && \
|
|
|
|
| 23 |
echo "Using Chrome version: $CHROME_VERSION" && \
|
| 24 |
+
wget -q -O /tmp/chromedriver.zip "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_VERSION/linux64/chromedriver-linux64.zip" && \
|
| 25 |
unzip /tmp/chromedriver.zip -d /tmp/ && \
|
| 26 |
mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver && \
|
| 27 |
chmod +x /usr/local/bin/chromedriver && \
|
| 28 |
rm -rf /tmp/chromedriver*
|
| 29 |
|
| 30 |
+
|
| 31 |
# Install Python dependencies
|
| 32 |
COPY requirements.txt .
|
| 33 |
RUN pip install --no-cache-dir -r requirements.txt
|