-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
23 lines (22 loc) · 861 Bytes
/
Copy pathdockerfile
File metadata and controls
23 lines (22 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:latest as driverdownload
COPY setup_browser_driver.sh /tmp
RUN /tmp/setup_browser_driver.sh
CMD zsh
FROM python:3.8
ENV DISPLAY :99
COPY --from=driverdownload /usr/local/bin/*driver /usr/local/bin
RUN apt update && \
#chrome dependencies TODO
#apt -y --no-install-recommends install gconf2 libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev fonts-liberation libasound2 xdg-utils&& \
#wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
#dpkg -i google-chrome-stable_current_amd64.deb && \
#browser
apt-get install -y xvfb firefox-esr && \
#python dependencies
pip3 install robotframework-seleniumlibrary robotframework && \
#clean up
apt -y autoremove --purge && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /robot
CMD zsh