From 82879fe9f6a233b8657335285918ed6948a3d64c Mon Sep 17 00:00:00 2001 From: hzpz Date: Tue, 13 Jan 2026 10:55:10 +0000 Subject: [PATCH] Add Docker Sandboxes compatibility Create symlinks for node and claude in /usr/local/bin/ so they are available on PATH without shell initialization. Also create the lock directory required by Docker Sandboxes. Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 982fe77..87b0a92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -207,6 +207,12 @@ RUN bash -c "source $NVM_DIR/nvm.sh && \ which claude && claude --version && \ which opencode && opencode --version" +# Docker Sandboxes compatibility: lock directory and symlinks (node/claude on PATH without shell init) +RUN bash -c "source $NVM_DIR/nvm.sh && \ + mkdir -p ~/.docker/sandbox/locks && \ + sudo ln -sf \"\$(which node)\" /usr/local/bin/node && \ + sudo ln -sf \"\$(which claude)\" /usr/local/bin/claude" + # Entrypoint ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] CMD ["/bin/zsh"] \ No newline at end of file