-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 749 Bytes
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
# Create a selenium pytest image without any browsers and browser drivers
FROM ubuntu
LABEL maintainer="Vamsi Darbhamulla"
LABEL email="vamsi.krishna0207@gmail.com"
ARG T_THREAD_COUNT=5
ENV THREAD_COUNT=$T_THREAD_COUNT
ARG T_ENABLE_PYTEST_CACHE=False
ENV ENABLE_PYTEST_CACHE=$T_ENABLE_PYTEST_CACHE
ARG T_ENABLE_ALLURE_REPORT=True
ENV ENABLE_ALLURE_REPORT=$T_ENABLE_ALLURE_REPORT
ARG T_ENABLE_MULTITHEAD=True
ENV ENABLE_MULTITHEAD=$T_ENABLE_MULTITHEAD
RUN mkdir /src && \
apt-get update && \
apt-get install -y \
python3.7 \
python3-pip && \
pip3 install selenium \
pytest-xdist \
allure-pytest \
webdriver_manager
WORKDIR /src
COPY . /src/
RUN chmod +x /src/entrypoint.sh
ENTRYPOINT ["/src/entrypoint.sh"]
CMD ["--help"]