From 6ed81fe802db38e59dd270ca18d1d932917d91d0 Mon Sep 17 00:00:00 2001
From: ts19084 <thomas.schauer-koeckeis@stud.th-deg.de>
Date: Wed, 12 Mar 2025 14:48:30 +0100
Subject: [PATCH] Nicer

---
 web.Dockerfile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/web.Dockerfile b/web.Dockerfile
index 78373ba..fdc9d59 100644
--- a/web.Dockerfile
+++ b/web.Dockerfile
@@ -1,14 +1,16 @@
 FROM archlinux:latest AS packager
 
+ENV USER=max
+
 RUN pacman-key --init
 RUN pacman -Sy --noconfirm base-devel git nginx
 
 RUN mkdir /build
 COPY ./files/ /build/
 
-RUN useradd -m max && chown -R max:max /build
-RUN echo "max ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
-USER max
+RUN useradd -m "$USER" && chown -R "$USER":"$USER" /build
+RUN echo ""$USER" ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
+USER "$USER"
 
 WORKDIR  /build/not_a_virus2.0
 RUN makepkg -s --noconfirm
-- 
GitLab