bobocup commited on
Commit
9cffd09
·
verified ·
1 Parent(s): b26aeb0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
  FROM python:3.9
2
 
3
- # 安装 Chrome
4
  RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
5
  && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
6
  && apt-get update \
7
- && apt-get install -y google-chrome-stable \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  # 设置工作目录
 
1
  FROM python:3.9
2
 
3
+ # 安装 Chrome 和 ChromeDriver
4
  RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
5
  && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
6
  && apt-get update \
7
+ && apt-get install -y google-chrome-stable chromium-chromedriver \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  # 设置工作目录