From b0a8f418661adf67a11013b1a368785629756c9e Mon Sep 17 00:00:00 2001
From: Louis <contact@louiscap.co>
Date: Sun, 22 Dec 2024 19:02:21 +0000
Subject: [PATCH] Switch to root for godot install

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

diff --git a/Dockerfile b/Dockerfile
index 0fb96c2..807529d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,9 +4,11 @@ ARG PLATFORM="linux.x86_64"
 ARG GODOT_VERSION="4.3-stable"
 ARG BUTLER_VERSION="15.12.0"
 
-RUN sudo apt-get update \
-    && sudo apt-get install -y git libfontconfig1 \
-    && sudo rm -rf /var/lib/apt/lists/*
+USER root
+
+RUN apt-get update \
+    && apt-get install -y git libfontconfig1 \
+    && rm -rf /var/lib/apt/lists/*
 
 COPY commands/godot_build.sh /usr/bin/godot_build
 COPY commands/godot_build_web.sh /usr/bin/godot_build_web
-- 
GitLab