Summary
In copilot_here containers, some tools (notably npm) may fail when caches/config directories under /home/appuser are created with root ownership. We need the container entrypoint to ensure safe, non-sensitive user-home directories exist and are owned by the runtime UID/GID so tools can run reliably as appuser.
Acceptance criteria
Notes
- The issue was observed in a session requiring manual fix:
sudo chown -R $(id -u):$(id -g) /home/appuser/.npm.
- Keep the fix global (shared entrypoint) for now; revisit per-image setup if/when needed.
Summary
In copilot_here containers, some tools (notably npm) may fail when caches/config directories under /home/appuser are created with root ownership. We need the container entrypoint to ensure safe, non-sensitive user-home directories exist and are owned by the runtime UID/GID so tools can run reliably as appuser.
Acceptance criteria
Notes
sudo chown -R $(id -u):$(id -g) /home/appuser/.npm.