Files
skillshare/.devcontainer/devcontainer.json
T
Willie 1b5056d0ea refactor(docker): unify versions, consolidate init scripts, add sandbox-logs
- Add `make sandbox-logs` / `mise run sandbox:logs` convenience target
- Unify Docker build versions via ARG: Node 24, pnpm 10.28.0, Go 1.25.5
- Extract shared demo content to scripts/create-demo-content.sh, slim down
  setup.sh and sandbox_playground_up.sh from ~150 duplicated lines each
- Move devcontainer scripts (ui, ui-p, docs) to .devcontainer/bin/
  (source-controlled, survives make clean) with auto mode-switching
2026-02-20 12:22:02 +08:00

35 lines
905 B
JSON

{
"name": "Skillshare Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "skillshare-devcontainer",
"workspaceFolder": "/workspace",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "24",
"pnpmVersion": "10.28.0"
}
},
"forwardPorts": [19420, 5173, 3000],
"portsAttributes": {
"19420": { "label": "API Server" },
"5173": { "label": "Vite (UI)" },
"3000": { "label": "Docusaurus" }
},
"remoteEnv": {
"PATH": "/workspace/.devcontainer/bin:/workspace/bin:${containerEnv:PATH}",
"SKILLSHARE_UI_HOST": "0.0.0.0"
},
"postCreateCommand": ".devcontainer/setup.sh",
"postStartCommand": ".devcontainer/start-dev.sh",
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
}
}