From eea9f34f5788e875e202d244d3c004a31f238872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20V=C4=83n=20Nguy=C3=AAn?= Date: Fri, 8 Nov 2024 17:40:07 +0700 Subject: [PATCH] feat: node universal --- .../node/.devcontainer/devcontainer.json | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 templates/node/.devcontainer/devcontainer.json diff --git a/templates/node/.devcontainer/devcontainer.json b/templates/node/.devcontainer/devcontainer.json new file mode 100644 index 0000000..6ab0bbe --- /dev/null +++ b/templates/node/.devcontainer/devcontainer.json @@ -0,0 +1,47 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/universal +{ + "name": "Node Universal", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + // "image": "mcr.microsoft.com/devcontainers/universal:2-linux", + "image": "mcr.microsoft.com/devcontainers/base:jammy", + "features": { + "ghcr.io/devcontainers/features/common-utils": {}, + "ghcr.io/devcontainers/features/node:1": { + "nodeGypDependencies": true, + "version": "lts", + "nvmVersion": "latest" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "latest", + "ppa": "false" + }, + "ghcr.io/devcontainers/features/git-lfs:1": { + "version": "latest" + }, + "ghcr.io/devcontainers-extra/features/cloudflared:1": { + "version": "latest" + } + }, + "runArgs": [], + "customizations": { + "vscode": { + "extensions": [] + } + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // 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" +}