spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / .devcontainer / devcontainer.json
Boris ChernyClaude Code c19ab34 · on Feb 22, 2025 History
52 lines · 1.4 KBRaw
1{
2 "name": "Claude Code Sandbox",
3 "build": {
4 "dockerfile": "Dockerfile",
5 "args": {
6 "TZ": "${localEnv:TZ:America/Los_Angeles}"
7 }
8 },
9 "runArgs": [
10 "--cap-add=NET_ADMIN",
11 "--cap-add=NET_RAW"
12 ],
13 "customizations": {
14 "vscode": {
15 "extensions": [
16 "dbaeumer.vscode-eslint",
17 "esbenp.prettier-vscode",
18 "eamodio.gitlens"
19 ],
20 "settings": {
21 "editor.formatOnSave": true,
22 "editor.defaultFormatter": "esbenp.prettier-vscode",
23 "editor.codeActionsOnSave": {
24 "source.fixAll.eslint": "explicit"
25 },
26 "terminal.integrated.defaultProfile.linux": "zsh",
27 "terminal.integrated.profiles.linux": {
28 "bash": {
29 "path": "bash",
30 "icon": "terminal-bash"
31 },
32 "zsh": {
33 "path": "zsh"
34 }
35 }
36 }
37 }
38 },
39 "remoteUser": "node",
40 "mounts": [
41 "source=claude-code-bashhistory,target=/commandhistory,type=volume",
42 "source=claude-code-config,target=/home/node/.claude,type=volume"
43 ],
44 "remoteEnv": {
45 "NODE_OPTIONS": "--max-old-space-size=4096",
46 "CLAUDE_CONFIG_DIR": "/home/node/.claude",
47 "POWERLEVEL9K_DISABLE_GITSTATUS": "true"
48 },
49 "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=delegated",
50 "workspaceFolder": "/workspace",
51 "postCreateCommand": "sudo /usr/local/bin/init-firewall.sh"
52}