2021-11-16 23:42:09 +01:00
|
|
|
# syntax=docker/dockerfile:1.3
|
2021-04-23 01:00:43 +02:00
|
|
|
FROM immawanderer/archlinux:linux-amd64
|
2020-03-04 20:11:45 +01:00
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
2022-10-10 16:28:28 +02:00
|
|
|
# as per https://github.com/opencontainers/image-spec/blob/main/annotations.md,
|
|
|
|
# keep Label Schema labels for backward compatibility.
|
2020-03-04 20:11:45 +01:00
|
|
|
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 \
|
2022-10-10 16:28:28 +02:00
|
|
|
org.label-schema.license=GPL-3.0 \
|
|
|
|
org.opencontainers.image.title="docker-archlinux-cdev" \
|
|
|
|
org.opencontainers.image.description="container image for C development" \
|
|
|
|
org.opencontainers.image.created=$BUILD_DATE \
|
|
|
|
org.opencontainers.image.authors=wanderer \
|
|
|
|
org.opencontainers.image.url="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
|
|
|
org.opencontainers.image.source="https://git.dotya.ml/wanderer/docker-archlinux-cdev.git" \
|
|
|
|
org.opencontainers.image.revision=$VCS_REF \
|
|
|
|
org.opencontainers.image.licenses=GPL-3.0
|
2020-03-04 20:11:45 +01:00
|
|
|
|
2022-03-24 16:54:49 +01:00
|
|
|
RUN pacman --version && \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
pacman -Syu --noconfirm --needed gcc cmake make git valgrind && \
|
|
|
|
pacman --noconfirm -Rn "$(pacman -Qdtq)" || true && \
|
|
|
|
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/*; \
|
|
|
|
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete;
|