@@ -23,19 +23,19 @@ RUN apt-get update && apt-get install -y \
23
23
libxfixes3 \
24
24
libxkbcommon0 \
25
25
libxrandr2 \
26
- xdg-utils \
27
26
libu2f-udev \
28
- libvulkan1
27
+ libvulkan1 \
28
+ xdg-utils
29
29
30
30
# =================================
31
31
# Install Bash Command Line Tools
32
32
# =================================
33
33
RUN apt-get -qy --no-install-recommends install \
34
+ curl \
34
35
sudo \
35
36
unzip \
36
- wget \
37
- curl \
38
37
vim \
38
+ wget \
39
39
xvfb \
40
40
&& rm -rf /var/lib/apt/lists/*
41
41
@@ -46,27 +46,13 @@ RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_am
46
46
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
47
47
RUN rm google-chrome-stable_current_amd64.deb
48
48
49
- # =======================================
50
- # Install Python and Basic Python Tools
51
- # =======================================
52
- RUN apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update
53
- RUN apt-get install -y python3 python3-pip python3-setuptools python3-dev python-distribute
49
+ # ================
50
+ # Install Python
51
+ # ================
52
+ RUN apt-get update -y
53
+ RUN apt-get install -y python3 python3-pip python3-setuptools python3-dev
54
54
RUN alias python=python3
55
55
RUN echo "alias python=python3" >> ~/.bashrc
56
-
57
- # ===========================
58
- # Configure Virtual Display
59
- # ===========================
60
- RUN set -e
61
- RUN echo "Starting X virtual framebuffer (Xvfb) in background..."
62
- RUN Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
63
- RUN export DISPLAY=:99
64
- RUN exec "$@"
65
-
66
- # =======================
67
- # Update Python Version
68
- # =======================
69
- RUN apt-get update -y
70
56
RUN apt-get -qy --no-install-recommends install python3.10
71
57
RUN rm /usr/bin/python3
72
58
RUN ln -s python3.10 /usr/bin/python3
@@ -77,6 +63,15 @@ RUN ln -s python3.10 /usr/bin/python3
77
63
RUN export PYTHONIOENCODING=utf8
78
64
RUN echo "export PYTHONIOENCODING=utf8" >> ~/.bashrc
79
65
66
+ # ===========================
67
+ # Configure Virtual Display
68
+ # ===========================
69
+ RUN set -e
70
+ RUN echo "Starting X virtual framebuffer (Xvfb) in background..."
71
+ RUN Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
72
+ RUN export DISPLAY=:99
73
+ RUN exec "$@"
74
+
80
75
# =====================
81
76
# Set up SeleniumBase
82
77
# =====================
@@ -86,15 +81,19 @@ COPY examples /SeleniumBase/examples/
86
81
COPY integrations /SeleniumBase/integrations/
87
82
COPY requirements.txt /SeleniumBase/requirements.txt
88
83
COPY setup.py /SeleniumBase/setup.py
84
+ COPY MANIFEST.in /SeleniumBase/MANIFEST.in
85
+ COPY pytest.ini /SeleniumBase/pytest.ini
86
+ COPY setup.cfg /SeleniumBase/setup.cfg
87
+ COPY virtualenv_install.sh /SeleniumBase/virtualenv_install.sh
89
88
RUN find . -name '*.pyc' -delete
90
- RUN pip3 install --upgrade pip setuptools wheel
91
- RUN cd /SeleniumBase && ls && pip3 install -r requirements.txt --upgrade
92
- RUN cd /SeleniumBase && pip3 install .
89
+ RUN pip install --upgrade pip setuptools wheel
90
+ RUN cd /SeleniumBase && ls && pip install -r requirements.txt --upgrade
91
+ RUN cd /SeleniumBase && pip install .
93
92
94
93
# =======================
95
94
# Download chromedriver
96
95
# =======================
97
- RUN sbase get chromedriver --path
96
+ RUN seleniumbase get chromedriver --path
98
97
99
98
# ==========================================
100
99
# Create entrypoint and grab example tests
0 commit comments