Skip to content

Commit

Permalink
Optimize docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Sep 21, 2023
1 parent 1e72fb7 commit 1d5cf6f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# https://github.com/joyzoursky/docker-python-chromedriver
# https://github.com/TomRoush/python-selenium-firefox-docker
# FROM tomroush/python-selenium-firefox-docker:latest
FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3 python3-pip \
firefox-geckodriver \
xvfb \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir selenium
FROM tomroush/python-selenium-firefox-docker:latest

ENV SELENIUM_HEADLESS=true

Expand Down

0 comments on commit 1d5cf6f

Please sign in to comment.