From 0ce8a54428c81ce3a8c3d3a6af7229a62a5c3c59 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Thu, 26 Sep 2024 16:42:07 +0700 Subject: [PATCH] feat: update using arch instead --- Dockerfile | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3e056f..ca6dc53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,19 @@ -FROM ubuntu:24.04 +FROM archlinux/archlinux:latest -RUN apt-get update -y -RUN apt-get install texlive-full -y +RUN pacman-key --init +RUN pacman -Sy git binutils make pkg-config fakeroot openssl base-devel --noconfirm -RUN apt-get install make -y \ No newline at end of file +# Create a new user +RUN useradd --no-create-home --shell=/bin/false build && usermod -L build +RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + +USER build + +WORKDIR /tmp +RUN git clone https://aur.archlinux.org/yay-bin.git + +WORKDIR /tmp/yay-bin +RUN makepkg -si --noconfirm + +RUN yay -Sy texlive-full --noconfirm \ No newline at end of file