add sudo to userland

This commit is contained in:
Luna 2025-06-10 18:58:38 -03:00
parent 9e13cc4b25
commit 051121c79e
2 changed files with 7 additions and 1 deletions

View file

@ -1,7 +1,9 @@
{
"permissions": {
"allow": [
"Bash(mkdir:*)"
"Bash(mkdir:*)",
"Bash(find:*)",
"Bash(rg:*)"
],
"deny": []
}

View file

@ -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