generated from oci/template
archlinux container
Some checks failed
Build and Publish Docker Image on Tag / build-and-publish (push) Failing after 2m25s
Some checks failed
Build and Publish Docker Image on Tag / build-and-publish (push) Failing after 2m25s
This commit is contained in:
parent
775a92f605
commit
58631f760d
3 changed files with 40 additions and 42 deletions
29
Dockerfile
29
Dockerfile
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue