diff --git a/Containerfile b/Containerfile index a0e2d38..b10f453 100644 --- a/Containerfile +++ b/Containerfile @@ -41,14 +41,15 @@ RUN mise install # Install sqlx CLI for managing database migrations in sqlx projects. RUN mise x -- cargo binstall -y cargo-nextest sqlx-cli -# Install Claude Code CLI. -RUN curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh | bash -RUN fish -c 'fish_add_path /home/$USERNAME/.local/bin' - # Finish Go setup. RUN go install golang.org/x/tools/gopls@latest RUN fish -c 'fish_add_path /home/$USERNAME/go/bin' +# Install Claude Code CLI. +RUN curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh | bash +RUN fish -c 'fish_add_path /home/$USERNAME/.local/bin' +COPY --chown=$USERNAME ./assets/claude/settings.json /home/$USERNAME/.claude/settings.json + # Copy Helix configurations. # It seems there's a bug in `apple/container`'s COPY implementation that fails # to recursively copy directory contents from the host, so we point it to each diff --git a/assets/claude/settings.json b/assets/claude/settings.json new file mode 100644 index 0000000..9039cef --- /dev/null +++ b/assets/claude/settings.json @@ -0,0 +1,11 @@ +{ + "permissions": { + "defaultMode": "plan" + }, + "enabledPlugins": { + "gopls-lsp@claude-plugins-official": true, + "rust-analyzer-lsp@claude-plugins-official": true + }, + "outputStyle": "Explanatory", + "spinnerTipsEnabled": false +}