Skip to content

Instantly share code, notes, and snippets.

@soup-bowl
Created February 2, 2025 14:47
Show Gist options
  • Save soup-bowl/11a2c4458454cdbb92dc91fa3214f5a5 to your computer and use it in GitHub Desktop.
Save soup-bowl/11a2c4458454cdbb92dc91fa3214f5a5 to your computer and use it in GitHub Desktop.
Whatsth.is Workspace Devcontainer
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Whatsthis Workspace",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "9.0"
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"installYarnUsingApt": true,
"version": "20",
"pnpmVersion": "none",
"nvmVersion": "latest"
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 43594],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root",
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csharp",
"ms-dotnettools.vscode-dotnet-runtime",
"ms-dotnettools.csdevkit",
"rangav.vscode-thunder-client",
"dbaeumer.vscode-eslint"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment