浏览代码

Update Dockerfile-Chrome-Selenium

蘭雅sRGB 3 年之前
父节点
当前提交
a1cff38b4e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      python3/Dockerfile-Chrome-Selenium

+ 3 - 2
python3/Dockerfile-Chrome-Selenium

@@ -1,4 +1,4 @@
-FROM debian:stable-slim\
+FROM debian:stable-slim
 RUN  apt update -y \
 RUN  apt update -y \
   && apt install --no-install-recommends --no-install-suggests -y wget unzip python3 python3-pip \
   && apt install --no-install-recommends --no-install-suggests -y wget unzip python3 python3-pip \
   && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
   && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
@@ -14,5 +14,6 @@ RUN  apt update -y \
   && rm -rf /var/lib/apt/lists/*  \
   && rm -rf /var/lib/apt/lists/*  \
   && pip3 install selenium
   && pip3 install selenium
   
   
+#  docker build  -t chrome  -f Dockerfile-Chrome-Selenium  .
 
 
-#  docker run -it debian:stable-slim bash
+#  docker run -d  --restart=always -v /app:/app --name chrome chrome python3 -m http.server