You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6f01d09
Browse filesBrowse the repository at this point in the historyBrowse files
fix(claude-code): create /etc/claude-code as root so managed-settings is readable (#101)
BuildKit applies COPY --chmod to any parent directories it auto-creates,
so "COPY --chmod=0644 managed-settings.json /etc/claude-code/managed-settings.json"
landed the file inside a drw-r--r-- directory — no execute bit, not traversable
by anyone in the container. The node user could not read the file even though
the file mode itself was correct, and jq in the CI verify step failed with
"Could not open file ... Permission denied".
Pre-create the directory explicitly as root before the COPY, and copy the file
with --chown=root:root so it matches normal /etc/ ownership conventions.
Also add a test -r precondition to the verify-command so future breakage of
this kind surfaces with a clear "file unreadable" failure before jq sees it.
Verified locally: built --target base from the modified Dockerfile, confirmed
/etc/claude-code is now drwxr-xr-x and managed-settings.json is -rw-r--r--
readable as the node user, and the full verify-command exits 0 under the
exact bash -c wrapping the CI matrix uses.
0 commit comments