FROM archlinux/base
# set the locale
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# keep the package DB
RUN rm /usr/share/libalpm/hooks/package-cleanup.hook
# update the image, install devel packages
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm base-devel
# runtime deps
RUN pacman -S --noconfirm \
              appstream-glib \
              colord \
              fwupdate
# buildtime deps
RUN pacman -S --noconfirm \
              adobe-source-han-sans-cn-fonts \
              docbook-utils \
              docbook-sgml \
              gobject-introspection \
              gtk-doc \
              meson \
              perl-sgmls \
              python-cairo \
              python-gobject \
              python-pillow \
              ttf-dejavu \
              umockdev \
              valgrind
# CI dep
RUN pacman -S --noconfirm git
# prepare the build environment
RUN mkdir /build
WORKDIR /build
