Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# Use Python 3.10 slim base image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Environment variables to optimize Python
|
|
@@ -41,11 +40,12 @@ RUN wget -q https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-sta
|
|
| 41 |
apt-get -fy install && \
|
| 42 |
rm google-chrome-stable_136.0.7103.113-1_amd64.deb
|
| 43 |
|
| 44 |
-
# Install ChromeDriver (pinned to 136.0.7103.
|
| 45 |
-
RUN wget -q -O /tmp/chromedriver.zip https://
|
| 46 |
-
unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
|
|
|
|
| 47 |
chmod +x /usr/local/bin/chromedriver && \
|
| 48 |
-
rm /tmp/chromedriver.zip
|
| 49 |
|
| 50 |
# Install Python dependencies
|
| 51 |
COPY requirements.txt .
|
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
# Environment variables to optimize Python
|
|
|
|
| 40 |
apt-get -fy install && \
|
| 41 |
rm google-chrome-stable_136.0.7103.113-1_amd64.deb
|
| 42 |
|
| 43 |
+
# Install ChromeDriver (pinned to 136.0.7103.113)
|
| 44 |
+
RUN wget -q -O /tmp/chromedriver.zip https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/136.0.7103.113/linux64/chromedriver-linux64.zip && \
|
| 45 |
+
unzip /tmp/chromedriver.zip chromedriver-linux64/chromedriver -d /usr/local/bin/ && \
|
| 46 |
+
mv /usr/local/bin/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver && \
|
| 47 |
chmod +x /usr/local/bin/chromedriver && \
|
| 48 |
+
rm -rf /tmp/chromedriver.zip /usr/local/bin/chromedriver-linux64
|
| 49 |
|
| 50 |
# Install Python dependencies
|
| 51 |
COPY requirements.txt .
|