added b2 util; a little refactored Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
390d09a448
commit
1e2fd96e0c
16
Dockerfile
16
Dockerfile
@ -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
|
||||
|
||||
WORKDIR /tmp/
|
||||
RUN pacman -Sy --noconfirm --needed python python-pip chromium wget vim jq \
|
||||
&& pip install robotframework robotframework-seleniumlibrary \
|
||||
RUN pacman -Sy --noconfirm --needed python python-pip chromium wget vim findutils \
|
||||
&& pip install robotframework robotframework-seleniumlibrary b2 \
|
||||
&& bsdtar xfv /tmp/chromedriver.zip && rm -v /tmp/chromedriver.zip \
|
||||
&& chmod -v +x /tmp/chromedriver \
|
||||
&& mkdir -pv /usr/local/bin \
|
||||
&& mv -v /tmp/chromedriver /usr/local/bin/ \
|
||||
RUN pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
|
||||
&& rm -rv /usr/share/info/* ;rm -rv /usr/share/man/* ; \
|
||||
rm -rv /usr/share/doc/* ;rm -rv /usr/share/zoneinfo/* ; \
|
||||
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; \
|
||||
rm -rv /tmp/* || true
|
||||
&& mv -v /tmp/chromedriver /usr/local/bin/
|
||||
RUN pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* \
|
||||
&& rm -rf /usr/share/i18n/* ; rm -rf /usr/include/* ; \
|
||||
find /. -name "*~" -type f -delete; \
|
||||
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete;
|
||||
WORKDIR /
|
||||
|
Loading…
Reference in New Issue
Block a user