reworked the clean-up logic a bit + screen ENV
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
5a8c4c6959
commit
390d09a448
23
Dockerfile
23
Dockerfile
@ -1,6 +1,10 @@
|
||||
FROM archlinux:latest
|
||||
|
||||
ENV CHROMEDRIVER_VERSION="80.0.3987.106"
|
||||
ENV SCREEN_WIDTH=1920
|
||||
ENV SCREEN_HEIGHT=1080
|
||||
ENV SCREEN_MAIN_DEPTH=24
|
||||
ENV SCREEN_SUB_DEPTH=32
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG VCS_REF
|
||||
@ -21,17 +25,10 @@ RUN pacman -Sy --noconfirm --needed python python-pip chromium wget vim jq \
|
||||
&& chmod -v +x /tmp/chromedriver \
|
||||
&& mkdir -pv /usr/local/bin \
|
||||
&& mv -v /tmp/chromedriver /usr/local/bin/ \
|
||||
&& pacman --noconfirm -Runs \
|
||||
gzip less sysfsutils which \
|
||||
&& 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/* \
|
||||
&& find /. -name "*~" -type f -delete \
|
||||
&& find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete \
|
||||
&& rm -rv /tmp/* \
|
||||
&& rm -rv /usr/include/* \
|
||||
&& pacman -Scc \
|
||||
&& rm -rv /var/cache/pacman/* /var/lib/pacman/sync/*
|
||||
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
|
||||
WORKDIR /
|
||||
|
||||
Loading…
Reference in New Issue
Block a user