Spaces:
Sleeping
Sleeping
Updated chromium driver installation v2
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -5,13 +5,15 @@ WORKDIR /app
|
|
| 5 |
# Install system dependencies for Chrome
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
wget \
|
| 8 |
-
|
| 9 |
unzip \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
# Add Google Chrome repository and install Chrome
|
| 13 |
-
RUN
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
apt-get update && apt-get install -y google-chrome-stable && \
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
|
|
|
| 5 |
# Install system dependencies for Chrome
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
wget \
|
| 8 |
+
curl \
|
| 9 |
unzip \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Add Google Chrome repository and install Chrome (modern approach without apt-key)
|
| 13 |
+
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 2>/dev/null || \
|
| 14 |
+
(mkdir -p /etc/apt/keyrings && \
|
| 15 |
+
curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg && \
|
| 16 |
+
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list) && \
|
| 17 |
apt-get update && apt-get install -y google-chrome-stable && \
|
| 18 |
rm -rf /var/lib/apt/lists/*
|
| 19 |
|