From 813f36fbf723a0dac46ec4cc8208af6f5d7f7631 Mon Sep 17 00:00:00 2001 From: joey0629 Date: Tue, 12 Mar 2024 17:51:45 +0800 Subject: [PATCH] webdriver update --- Dockerfile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4e97956..9ca14ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,20 +3,6 @@ FROM python:3.10 # Install Python and pip RUN apt-get update && apt-get install -y python3 python3-pip && apt install nano -RUN apt-get update && apt-get install -y \ - wget unzip \ - && rm -rf /var/lib/apt/lists/* \ - && wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip \ - && unzip chromedriver_linux64.zip \ - && mv chromedriver /usr/local/bin/ \ - && chmod +x /usr/local/bin/chromedriver - -# 安裝Google Chrome -RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ - && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list \ - && apt-get update && apt-get install -y \ - google-chrome-stable \ - && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /app