Skip to content

Commit a0d7224

Browse files
committed
fix: install Claude Code as vscode user to preserve ~/.local/bin
1 parent f6ce3bb commit a0d7224

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.devcontainer/base/.devcontainer/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ RUN groupadd --gid $USER_GID $USERNAME \
5454
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
5555
&& chmod 0440 /etc/sudoers.d/$USERNAME
5656

57-
# Install Claude Code
57+
# Install Claude Code (as user to install in correct home)
58+
USER $USERNAME
5859
RUN curl -fsSL https://claude.ai/install.sh | bash
60+
USER root
5961

6062
# Prepare Claude Code directories
6163
RUN mkdir -p /home/$USERNAME/.claude && \

0 commit comments

Comments
 (0)