diff --git a/.devcontainer.json b/.devcontainer.json new file mode 100644 index 0000000..844c52d --- /dev/null +++ b/.devcontainer.json @@ -0,0 +1,21 @@ +{ + "image": "docker.io/node:22-alpine", + "mounts": [ + "type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/root/.ssh" + ], + "customizations": { + "vscode": { + "extensions": [ + ] + } + }, + "features": { + "ghcr.io/cirolosapio/devcontainers-features/alpine-openssh:0": {}, + "ghcr.io/cirolosapio/devcontainers-features/alpine-git:0": {} + }, + "forwardPorts": [3000], + "shutdownAction": "stopContainer", + "containerEnv": { + "NODE_ENV": "development" + } +} \ No newline at end of file diff --git a/README.md b/README.md index 77f77fe..b5f80c8 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ no-as-service/ ├── index.js # Express API ├── reasons.json # 1000+ universal rejection reasons ├── package.json +├── .devcontainer.json # VS Code / Github devcontainer setup └── README.md ``` @@ -118,6 +119,10 @@ For reference, here’s the package config: --- +## ⚓ Devcontainer + +If you open this repo in Github Codespaces, it will automatically use `.devcontainer.json` to set up your environment. If you open it in VSCode, it will ask you if you want to reopen it in a container. + ## 👤 Author Created with creative stubbornness by [hotheadhacker](https://github.com/hotheadhacker)