Skip to content

fix: run Docker container as non-root user to reduce blast radius#19

Merged
hjain-perforce merged 2 commits intoperforce:mainfrom
LuNHans:feature/dockerfile-non-root
Apr 16, 2026
Merged

fix: run Docker container as non-root user to reduce blast radius#19
hjain-perforce merged 2 commits intoperforce:mainfrom
LuNHans:feature/dockerfile-non-root

Conversation

@LuNHans
Copy link
Copy Markdown

@LuNHans LuNHans commented Mar 20, 2026

  • Add non-root mcpuser and switch to it via USER directive
  • Set P4TICKETS env var to /home/mcpuser/.p4tickets
  • Update README mount paths from /root to /home/mcpuser
  • Ensure /app/logs is writable by mcpuser

LH-EA and others added 2 commits March 20, 2026 10:53
- Add non-root mcpuser and switch to it via USER directive
- Set P4TICKETS env var to /home/mcpuser/.p4tickets
- Update README mount paths from /root to /home/mcpuser
- Ensure /app/logs is writable by mcpuser
@hjain-perforce hjain-perforce merged commit c54422e into perforce:main Apr 16, 2026
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.

3 participants