Merge pull request #23 from Fordi/devcontainer

Added devcontainer
This commit is contained in:
Salman Qureshi
2025-05-08 12:41:19 +05:30
committed by GitHub
2 changed files with 26 additions and 0 deletions

21
.devcontainer.json Normal file
View File

@@ -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"
}
}

View File

@@ -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, heres 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)