2020-06-02 16:28:02 +02:00
|
|
|
FROM archlinux:latest
|
|
|
|
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
|
|
|
LABEL description="Hourly updated archlinux base image"
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
2020-11-26 14:28:56 +01:00
|
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux.git" \
|
2020-06-02 16:28:02 +02:00
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.license=GPL-3.0
|
|
|
|
|
|
|
|
WORKDIR /tmp/
|
|
|
|
RUN pacman -Syu --noconfirm --needed && pacman --noconfirm -R $(pacman -Qdtq) || true
|
|
|
|
RUN pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
|
|
|
|
rm -rv /tmp/* || true
|
|
|
|
WORKDIR /
|