Add SuperClaude installation for user
- Install pipx in Dockerfile for Python package management - Add SuperClaude installation in entrypoint.sh for each user - SuperClaude runs with user permissions for better security 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ RUN npm install -g @anthropic-ai/claude-code
|
||||
ENV PATH="/usr/local/bin:${PATH}"
|
||||
|
||||
# additional package
|
||||
RUN apt-get install -y fcitx5 --fix-missing
|
||||
RUN apt-get install -y fcitx5 pipx --fix-missing
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ RUN curl -fsSL https://code-server.dev/install.sh | sh
|
||||
RUN which code-server && code-server --version
|
||||
|
||||
|
||||
|
||||
# git information
|
||||
RUN git config --global user.email "user@mail.com"
|
||||
RUN git config --global user.name "docker-debian"
|
||||
|
||||
@@ -55,6 +55,9 @@ set -e
|
||||
# clean chromium config for fresh start
|
||||
su - $XWINDOW_USER -c "rm -rf ~/.config/chromium/"
|
||||
|
||||
# install super-claude
|
||||
su - $XWINDOW_USER -c "pipx install SuperClaude && pipx upgrade SuperClaude && SuperClaude install"
|
||||
|
||||
# start code-server in background
|
||||
su - $XWINDOW_USER -c "code-server --bind-addr 0.0.0.0:30145 --auth password /mnt" &
|
||||
|
||||
|
||||
Reference in New Issue
Block a user