archlinux container
Some checks failed
Build and Publish Docker Image on Tag / build-and-publish (push) Failing after 2m25s

This commit is contained in:
Merith-TK 2024-10-02 12:07:59 -07:00
parent 775a92f605
commit 58631f760d
3 changed files with 40 additions and 42 deletions

View file

@ -1 +1,28 @@
FROM alpine:3.12
# Use Arch Linux as the base image
FROM archlinux:base-devel
# Set environment variables for non-interactive mode
ENV DEBIAN_FRONTEND=noninteractive
# Update the package manager and install necessary packages
RUN pacman -Syu --noconfirm git
# Create a new user named 'user' with UID 1000
RUN useradd -m -u 1000 user && \
echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
# Switch to the new user
USER user
# Install yay-bin AUR package
RUN git clone https://aur.archlinux.org/yay-bin.git /home/user/yay-bin && \
cd /home/user/yay-bin && \
makepkg -si --noconfirm && \
cd ~ && \
rm -rf /home/user/yay-bin
# Install neofetch with yay
RUN yay -S --noconfirm neofetch
# Set the default command
CMD ["neofetch"]