2021-04-22 21:38:59 +02:00
|
|
|
# syntax=docker/dockerfile:1.2
|
2020-06-02 20:12:10 +02:00
|
|
|
FROM immawanderer/archlinux:latest
|
2020-03-04 20:11:45 +01:00
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
2020-11-26 14:58:41 +01:00
|
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
2020-03-17 03:20:31 +01:00
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.license=GPL-3.0
|
2020-03-04 20:11:45 +01:00
|
|
|
|
2021-04-22 21:38:59 +02:00
|
|
|
RUN pacman --version
|
|
|
|
|
|
|
|
RUN pacman -Syu --noconfirm --needed gcc cmake make git valgrind
|
|
|
|
RUN pacman --noconfirm -Rn "$(pacman -Qdtq)" || true
|
|
|
|
RUN pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* \
|
|
|
|
&& rm -rf /usr/share/info/* ;rm -rf /usr/share/man/* ; \
|
|
|
|
rm -rf /usr/share/doc/* ;rm -rf /usr/share/zoneinfo/* ;rm -rf /usr/share/i18n/*; \
|
2020-04-22 21:20:11 +02:00
|
|
|
find /. -name "*~" -type f -delete; \
|
2021-04-22 21:38:59 +02:00
|
|
|
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete;
|