latest updates to the Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-03-16 20:09:01 +01:00
parent 6fe52b6a4b
commit 1627c80f6b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -15,20 +15,16 @@ ADD https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedr
WORKDIR /tmp WORKDIR /tmp
RUN pacman -Syu --noconfirm --needed python python-pip chromium \ RUN pacman -Syu --noconfirm --needed python python-pip chromium
&& pacman -Scc \
&& rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
RUN pip install robotframework robotframework-seleniumlibrary \ RUN pip install robotframework robotframework-seleniumlibrary \
&& bsdtar xfv /tmp/chromedriver.zip && rm -v /tmp/chromedriver.zip \ && bsdtar xfv /tmp/chromedriver.zip && rm -v /tmp/chromedriver.zip \
&& chmod -v +x /tmp/chromedriver \ && chmod -v +x /tmp/chromedriver \
&& mkdir -pv /usr/local/bin \ && mkdir -pv /usr/local/bin \
&& mv -v /tmp/chromedriver /usr/local/bin/ && \ && mv -v /tmp/chromedriver /usr/local/bin/
# improved clean-up thanks to this: https://github.com/yantis/docker-archlinux-tiny RUN pacman --noconfirm -Runs \
pacman --noconfirm -Runs \
gzip less sysfsutils which \ gzip less sysfsutils which \
&& pacman --noconfirm -R shadow \
&& rm -rv /usr/share/info/* \ && rm -rv /usr/share/info/* \
&& rm -rv /usr/share/man/* \ && rm -rv /usr/share/man/* \
&& rm -rv /usr/share/doc/* \ && rm -rv /usr/share/doc/* \
@ -38,8 +34,8 @@ RUN pip install robotframework robotframework-seleniumlibrary \
&& find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete \ && find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete \
&& rm -rv /tmp/* \ && rm -rv /tmp/* \
&& rm -rv /usr/include/* \ && rm -rv /usr/include/* \
&& pacman --noconfirm -Runs tar gawk \ && pacman --noconfirm -Runs tar gawk || true \
&& pacman -Scc \ && pacman -Scc \
&& rm -rv /var/cache/pacman/* /var/lib/pacman/sync/* \ && rm -rv /var/cache/pacman/* /var/lib/pacman/sync/*
WORKDIR / WORKDIR /