-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
# https://github.com/joyzoursky/docker-python-chromedriver | ||
FROM joyzoursky/python-chromedriver:3.9 | ||
# https://github.com/TomRoush/python-selenium-firefox-docker | ||
# FROM tomroush/python-selenium-firefox-docker:latest | ||
FROM ubuntu:20.04 | ||
|
||
ENV SELENIUM_HEADLESS=true | ||
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 | ||
|
||
RUN pip install selenium | ||
ENV SELENIUM_HEADLESS=true | ||
|
||
ADD page_perf_timer.py /opt/page_timer/ | ||
|
||
WORKDIR /opt/page_timer | ||
|
||
ENTRYPOINT ["python", "page_perf_timer.py"] | ||
ENTRYPOINT ["python3", "page_perf_timer.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters