docker-archlinux-rf/Dockerfile

26 lines
884 B
Docker
Raw Normal View History

2020-03-05 00:25:26 +01:00
FROM archlinux/base
ENV CHROMEDRIVER_VERSION="80.0.3987.106"
2020-03-16 14:28:10 +01:00
ARG BUILD_DATE
ARG VCS_REF
LABEL description="Docker image for running tests using robot framework."
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/docker-archlinux-rf.git" \
org.label-schema.vcs-ref=$VCS_REF
ADD https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip ./chromedriver.zip
RUN pacman -Syu --noconfirm --needed python python-pip chromium \
2020-03-04 03:23:36 +01:00
&& pacman -Scc \
&& rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
2020-03-16 14:28:10 +01:00
RUN pip install robotframework robotframework-seleniumlibrary \
&& bsdtar xfv ./chromedriver.zip && rm -v ./chromedriver.zip \
&& chmod -v +x ./chromedriver \
2020-03-04 03:23:36 +01:00
&& mkdir -pv /usr/local/bin \
2020-03-16 14:28:10 +01:00
&& mv -v ./chromedriver /usr/local/bin/