Skip to content

refactor: run container as root, remove sudo#821

Merged
FL4TLiN3 merged 2 commits intomainfrom
refactor/remove-nonroot-sudo
Mar 19, 2026
Merged

refactor: run container as root, remove sudo#821
FL4TLiN3 merged 2 commits intomainfrom
refactor/remove-nonroot-sudo

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Remove non-root perstack user and sudo package from Docker image
  • Run as root by default — users who need non-root can extend perstack/perstack as base image
  • Update system prompt to drop sudo from apt-get install instruction
  • Update docs and architecture diagram to reflect the change

Motivation

The only reason for sudo was apt-get install. Running as root simplifies the image and avoids unnecessary attack surface from the sudo binary itself. Users who need non-root isolation can add their own user in a derived Dockerfile.

Test plan

  • CI passes (typecheck, test, build, lint)
  • Docker image builds successfully

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits March 19, 2026 17:49
Remove the non-root perstack user and sudo package from the container.
Users who need a non-root setup can use perstack/perstack as a base
image and add their own user with apt-get install.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 1b3e675 into main Mar 19, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/remove-nonroot-sudo branch March 19, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant