added b2 util; a little refactored Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-05-11 03:01:38 +02:00
parent 390d09a448
commit 1e2fd96e0c
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -19,16 +19,14 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
ADD https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip /tmp/chromedriver.zip ADD https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip /tmp/chromedriver.zip
WORKDIR /tmp/ WORKDIR /tmp/
RUN pacman -Sy --noconfirm --needed python python-pip chromium wget vim jq \ RUN pacman -Sy --noconfirm --needed python python-pip chromium wget vim findutils \
&& pip install robotframework robotframework-seleniumlibrary \ && pip install robotframework robotframework-seleniumlibrary b2 \
&& 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/
RUN pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \ RUN pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* \
&& rm -rv /usr/share/info/* ;rm -rv /usr/share/man/* ; \ && rm -rf /usr/share/i18n/* ; rm -rf /usr/include/* ; \
rm -rv /usr/share/doc/* ;rm -rv /usr/share/zoneinfo/* ; \ find /. -name "*~" -type f -delete; \
rm -rv /usr/share/i18n/* ;rm -rv /usr/include/* ; \ find /. -name "*~" -type f -delete; \ 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/* || true
WORKDIR / WORKDIR /