forked from a-kpappas/hawk_test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 723 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
32
33
34
35
# Defines the tag for OBS and build script builds:
#!BuildTag: hawk_test
# Use the repositories defined in OBS for installing packages
#!UseOBSRepositories
FROM opensuse/leap:15.4
RUN zypper -n install -y --no-recommends \
MozillaFirefox \
MozillaFirefox-branding-upstream \
file \
python3-paramiko \
python3-PyVirtualDisplay \
python3-selenium \
xauth \
xdpyinfo \
xorg-x11-fonts \
xorg-x11-Xvnc && \
zypper -n clean -a
COPY geckodriver /usr/local/bin/
RUN chmod +x /usr/local/bin/geckodriver
RUN useradd -l -m -d /test test
COPY *.py /
ENV PYTHONPATH /
ENV PYTHONUNBUFFERED 1
ENV DBUS_SESSION_BUS_ADDRESS /dev/null
WORKDIR /test
USER test
ENTRYPOINT ["/usr/bin/python3", "/hawk_test.py"]