-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
40 lines (32 loc) · 998 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Start from the official Ubuntu image
FROM ubuntu:21.04
LABEL maintainer="MDW <MDW@private.fr>"
## Set environment variables
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Not on 22.04: firefox-geckodriver
# Next lines would upgrade image - skipping
# && apt-get upgrade -y \
# && apt-get dist-upgrade -y \
RUN export DEBIAN_FRONTEND="noninteractive" \
&& apt-get update --fix-missing \
&& apt-get install -y \
firefox \
firefox-geckodriver \
xvfb \
xserver-xephyr \
python3-pip \
python3-selenium \
python3-pyvirtualdisplay \
python3-colorama \
python3-urllib3 \
python3-requests \
&& apt clean && apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# Install packages to Python3
# RUN pip3 install --upgrade pip \
# && pip3 install \
# "urllib3>=1.24.2" \
# "colorama>=0.3.7" \
# "selenium>=3.14.1" \
# "PyVirtualDisplay>=0.2.4" \
# "requests>=2.23.0"