From 051121c79e79ea6df6d56d806195925e6a3f2542 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 10 Jun 2025 18:58:38 -0300 Subject: [PATCH] add sudo to userland --- .claude/settings.local.json | 4 +++- pkg/config/config.go | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index a4af320..e2ee183 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -1,7 +1,9 @@ { "permissions": { "allow": [ - "Bash(mkdir:*)" + "Bash(mkdir:*)", + "Bash(find:*)", + "Bash(rg:*)" ], "deny": [] } diff --git a/pkg/config/config.go b/pkg/config/config.go index 615bc65..5fb2ae1 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -53,6 +53,7 @@ RUN apt-get update && apt-get install -y \ gcc \ g++ \ make \ + sudo \ && rm -rf /var/lib/apt/lists/* # Install Node.js (latest LTS) @@ -62,6 +63,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ # Install Claude Code CLI RUN npm install -g @anthropic-ai/claude-code +# Configure passwordless sudo for all users +RUN echo 'ALL ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + # Create workspace directory RUN mkdir -p /workspace WORKDIR /workspace