finalProject/.devcontainer/devcontainer.json

31 lines
1 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/typescript-node
{
"name": "School Project",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 16, 18, 20
"args": {
"VARIANT": "22"
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 4321],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pnpm install",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"customizations": {
"vscode": {
"extensions": [
"astro-build.astro-vscode",
"denoland.vscode-deno",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
// Optional tbh
"christian-kohler.path-intellisense",
"YoavBls.pretty-ts-errors"
]
}
}
}