generated from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile.arch
36 lines (27 loc) · 1.18 KB
/
Containerfile.arch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM quay.io/toolbx-images/archlinux-toolbox:latest
LABEL com.github.containers.toolbox="true" \
usage="arch container that is easier to use" \
summary="This image is arch with yay, git, and base-devel preinstalled" \
maintainer="johnr14"
COPY extra-packages.arch /
RUN pacman -Syu base-devel git just nano cosign --needed --noconfirm - < extra-packages.arch
RUN rm /extra-packages.arch
RUN pacman -Syu --noconfirm
RUN ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update
# Clean up
RUN pacman -Scc --noconfirm
# Create build user
RUN useradd -m --shell=/bin/bash build && usermod -L build && \
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER build
WORKDIR /home/build
RUN git clone https://aur.archlinux.org/yay.git && \
cd yay && \
makepkg -si --noconfirm
USER root
WORKDIR /