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
56 lines · 1.7 KBRaw
1{
2 "name": "Claude Code Sandbox",
3 "build": {
4 "dockerfile": "Dockerfile",
5 "args": {
6 "TZ": "${localEnv:TZ:America/Los_Angeles}"
7 },
8 "prebuild": {
9 "command": "bash -c '${localWorkspaceFolder}/.devcontainer/cache-github-api.sh || echo \"Warning: Failed to cache GitHub API data\"'"
10 }
11 },
12 "runArgs": [
13 "--cap-add=NET_ADMIN",
14 "--cap-add=NET_RAW"
15 ],
16 "customizations": {
17 "vscode": {
18 "extensions": [
19 "dbaeumer.vscode-eslint",
20 "esbenp.prettier-vscode",
21 "eamodio.gitlens"
22 ],
23 "settings": {
24 "editor.formatOnSave": true,
25 "editor.defaultFormatter": "esbenp.prettier-vscode",
26 "editor.codeActionsOnSave": {
27 "source.fixAll.eslint": "explicit"
28 },
29 "terminal.integrated.defaultProfile.linux": "zsh",
30 "terminal.integrated.profiles.linux": {
31 "bash": {
32 "path": "bash",
33 "icon": "terminal-bash"
34 },
35 "zsh": {
36 "path": "zsh"
37 }
38 }
39 }
40 }
41 },
42 "remoteUser": "node",
43 "mounts": [
44 "source=claude-code-bashhistory,target=/commandhistory,type=volume",
45 "source=claude-code-config,target=/home/node/.claude,type=volume",
46 "type=bind,source=${localEnv:HOME}/.github-meta-cache,target=/github-meta-cache,consistency=cached"
47 ],
48 "remoteEnv": {
49 "NODE_OPTIONS": "--max-old-space-size=4096",
50 "CLAUDE_CONFIG_DIR": "/home/node/.claude",
51 "POWERLEVEL9K_DISABLE_GITSTATUS": "true"
52 },
53 "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=delegated",
54 "workspaceFolder": "/workspace",
55 "postCreateCommand": "sudo /usr/local/bin/init-firewall.sh"
56}