Skip to content

Fix Docker permission error for cache directory#2

Merged
andreeapopvisma merged 1 commit intomasterfrom
fix/docker-homedir-permission
Feb 23, 2026
Merged

Fix Docker permission error for cache directory#2
andreeapopvisma merged 1 commit intomasterfrom
fix/docker-homedir-permission

Conversation

@andreeapopvisma
Copy link
Contributor

Summary

  • Add -m flag to useradd in Dockerfile so /home/appuser is created
  • Fixes runtime error: mkdir: cannot create directory '/home/appuser': Permission denied
  • The app uses os.homedir() to resolve ~/.cache/dev-docs-mcp for caching cloned docs and embeddings

Test plan

  • Rebuild Docker image and verify the MCP server initializes without permission errors
  • Verify searchDocs and listDocPages tools work via the gateway

🤖 Generated with Claude Code

Add -m flag to useradd so /home/appuser exists, allowing the cache
directory at ~/.cache/dev-docs-mcp to be created at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@andreeapopvisma andreeapopvisma merged commit 6dbfd59 into master Feb 23, 2026
2 checks passed
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