melawy-welcome/.github/archlinux/Dockerfile

24 lines
604 B
Docker
Raw Normal View History

2022-06-07 17:57:45 +05:00
FROM archlinux/archlinux:base-devel
WORKDIR /app
2022-06-07 20:17:35 +05:00
ENV CARGO_TERM_COLOR=always
2022-06-07 17:57:45 +05:00
2022-06-07 20:17:35 +05:00
RUN pacman -Syu --noconfirm --noprogressbar git rustup glib2 gtk3 pkg-config meson wget
2022-06-07 17:57:45 +05:00
RUN useradd -d /app builder
RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER builder
RUN echo "Reading /etc/os-release" \
cat /etc/os-release || true
RUN sudo chown builder:builder .
RUN rustup toolchain install nightly
RUN rustup component add cargo
RUN rustup component add clippy
2022-06-07 20:17:35 +05:00
RUN wget https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/master/cachyos-hello-git/PKGBUILD
RUN makepkg -sf --noconfirm --needed