// 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": "Docusaurus", // 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 Docusaurus dev server port 3000 ], // 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": [ "davidanson.vscode-markdownlint", "streetsidesoftware.code-spell-checker" ] } }, // 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": "18" }, "github-cli": "latest" } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" }