Files
skillshare/.devcontainer/devcontainer.json
T
Willie 7a6e78783b fix(build): separate host and devcontainer binary output paths
Devcontainer `make build` previously wrote a Linux binary to
`bin/skillshare` via the shared volume mount, overwriting the host's
macOS binary and causing `exec format error`.

Introduce a `BINARY` variable (Makefile) / `SKILLSHARE_BINARY` env var
(mise) so devcontainer builds to `/usr/local/bin/skillshare` while the
host keeps `bin/skillshare`. Also update `scripts/test.sh` to respect
a pre-set `SKILLSHARE_TEST_BINARY` instead of unconditionally
overwriting it.
2026-03-12 16:45:02 +08:00

32 lines
940 B
JSON

{
"name": "Skillshare Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "skillshare-devcontainer",
"workspaceFolder": "/workspace",
"forwardPorts": [5173, 19420, 3000],
"portsAttributes": {
"5173": { "label": "Dashboard (ui)" },
"19420": { "label": "API Backend" },
"3000": { "label": "Docs (docs)" }
},
"remoteEnv": {
"PATH": "/workspace/.devcontainer/bin:/usr/local/bin:${containerEnv:PATH}",
"SKILLSHARE_UI_HOST": "0.0.0.0",
"BINARY": "/usr/local/bin/skillshare",
"SKILLSHARE_BINARY": "/usr/local/bin/skillshare",
"SKILLSHARE_TEST_BINARY": "/usr/local/bin/skillshare"
},
"postCreateCommand": ".devcontainer/setup.sh",
"postStartCommand": ".devcontainer/start-dev.sh",
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
}
}