From 9e935235e4e06532ac2494c59d834acec2fafab6 Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 16 Jan 2026 00:42:10 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Update=20codebase=20=F0=9F=90=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dockerfile Dockerfile.base --- Dockerfile | 1 + Dockerfile.base | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b83582a..6f05048 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,6 +78,7 @@ COPY ./dockerfs/usr/local/bin/. /usr/local/bin/ RUN set -e; \ echo "Updating the system and ensuring bash is installed"; \ + sed -i 's/^#DisableSandbox/DisableSandbox/' /etc/pacman.conf || sed -i '/\[options\]/a DisableSandbox' /etc/pacman.conf; \ pkmgr update;pkmgr install bash RUN set -e; \ diff --git a/Dockerfile.base b/Dockerfile.base index 785b0bc..17f10a8 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -12,7 +12,13 @@ FROM --platform=$TARGETPLATFORM lopsided/archlinux-arm64v8:latest AS base-arm64 FROM base-${TARGETARCH} AS base # Update system and install essential packages -RUN pacman -Syyu --noconfirm; \ +RUN set -e; \ + if grep -q "^#DisableSandbox" /etc/pacman.conf 2>/dev/null; then \ + sed -i 's/^#DisableSandbox/DisableSandbox/' /etc/pacman.conf; \ + else \ + sed -i '/\[options\]/a DisableSandbox' /etc/pacman.conf; \ + fi; \ + pacman -Syyu --noconfirm; \ pacman -Syyu --noconfirm git curl wget bash glibc-locales; \ pacman -Scc --noconfirm