hypertuner-cloud/.devcontainer/devcontainer.json

43 lines
1.5 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "HyperTuner Cloud",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
// default dev server port
5173
],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Configure tool-specific properties.
"customizations": {
"vscode": {
// NOTE: keep this in sync with: .vscode/extensions.json
"extensions": [
"editorconfig.editorconfig",
"davidanson.vscode-markdownlint",
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
},
// install dependencies
"postCreateCommand": "npm i",
// run dev server
"postStartCommand": "npm start",
"containerUser": "vscode",
"waitFor": "postCreateCommand",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"node": {
"version": "20"
},
"github-cli": "latest"
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}