Files
Conor BronsdonandClaude Fable 5 27916d3730 Add sshd feature to devcontainer for gh codespace ssh support
Testing this devcontainer config in a real Codespace showed gh codespace
ssh fails to connect: the base javascript-node image has no SSH server,
and the codespaces agent no longer auto-injects one. Adding the
ghcr.io/devcontainers/features/sshd feature (as recommended by the CLI's
own error message) fixes CLI/terminal-based access to the container.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-07 21:48:06 -07:00

33 lines
910 B
JSON

{
"name": "podcastindex-web-ui",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-16-bullseye",
"features": {
"ghcr.io/devcontainers/features/sshd:1": {
"version": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode"
]
}
},
"forwardPorts": [9001, 5001],
"portsAttributes": {
"9001": {
"label": "webpack-dev-server (UI)",
"onAutoForward": "openPreview"
},
"5001": {
"label": "express API server",
"onAutoForward": "notify"
}
},
"containerEnv": {
"COREPACK_ENABLE_DOWNLOAD_PROMPT": "0"
},
"postCreateCommand": "sudo corepack enable && corepack prepare [email protected] --activate && { [ -f .env ] || cp .env-example .env; } && { [ -f .environments/.env.development ] || cp .env-example .environments/.env.development; } && yarn install",
"remoteUser": "node"
}