Skip to content

Commit d845064

Browse files
Merge pull request #23 from Fordi/devcontainer
Added devcontainer
2 parents 7cfa9d2 + 56ac124 commit d845064

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.devcontainer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"image": "docker.io/node:22-alpine",
3+
"mounts": [
4+
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/root/.ssh"
5+
],
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
]
10+
}
11+
},
12+
"features": {
13+
"ghcr.io/cirolosapio/devcontainers-features/alpine-openssh:0": {},
14+
"ghcr.io/cirolosapio/devcontainers-features/alpine-git:0": {}
15+
},
16+
"forwardPorts": [3000],
17+
"shutdownAction": "stopContainer",
18+
"containerEnv": {
19+
"NODE_ENV": "development"
20+
}
21+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ no-as-service/
8989
├── index.js # Express API
9090
├── reasons.json # 1000+ universal rejection reasons
9191
├── package.json
92+
├── .devcontainer.json # VS Code / Github devcontainer setup
9293
└── README.md
9394
```
9495

@@ -118,6 +119,10 @@ For reference, here’s the package config:
118119

119120
---
120121

122+
## ⚓ Devcontainer
123+
124+
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.
125+
121126
## 👤 Author
122127

123128
Created with creative stubbornness by [hotheadhacker](https://github.com/hotheadhacker)

0 commit comments

Comments
 (0)