Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

Fix Docker dev container permissions and isolate node_modules - #23

Merged
glopez-dev merged 1 commit into
mainfrom
fix/docker-dev-permissions
Apr 13, 2026
Merged

Fix Docker dev container permissions and isolate node_modules#23
glopez-dev merged 1 commit into
mainfrom
fix/docker-dev-permissions

Conversation

@glopez-dev

Copy link
Copy Markdown
Contributor

Summary

  • Run dev container as non-root user with host UID/GID alignment to fix bind mount permission issues
  • Install node_modules in /deps and symlink at startup to prevent a root-owned node_modules on the host
  • Document the dev setup and why a local npm ci is needed for editor support

Closes #22

Test plan

  • Run just up dev and verify the container starts without errors
  • Check that Vite dev server is accessible at http://localhost:5173
  • Verify no root-owned node_modules directory appears on the host
  • Run npm ci locally and confirm VSCode resolves types correctly

Run the container as a non-root user matching the host UID/GID to fix
file permission issues with bind mounts. Install node_modules in /deps
inside the container and symlink them at startup, preventing Docker from
creating a root-owned node_modules directory on the host.
@glopez-dev
glopez-dev merged commit 88441e8 into main Apr 13, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Docker dev container file permissions and isolate node_modules

1 participant