Skip to content

Commit bf22a0c

Browse files
feat: try vercel
1 parent ca93d72 commit bf22a0c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ My Develop Environment Docker
44

55
See `Dockerfile` for details
66

7+
Docker can be useful to ensure your website works on the same on any machine
8+
79
add following config file to the repo before use
810

911
## github codespace useage
@@ -34,3 +36,31 @@ $:
3436
- name: ls
3537
script: ls
3638
```
39+
40+
## vercel deploy useage
41+
42+
```
43+
# vercel.json
44+
{
45+
"builds": [
46+
{ "src": "Dockerfile",
47+
"use": "@vercel/docker",
48+
"config": {
49+
"buildCommand": "docker build -t my-env:latest .",
50+
"pushCommand": "docker push my-env:latest"
51+
}
52+
}
53+
]
54+
}
55+
```
56+
57+
## jetbrains devcontainer & other servers useage
58+
59+
Copy `Dockerfile` to the target repo folder
60+
61+
Create New Dev Container from Dockerfile under the repo folder
62+
63+
## TODO
64+
65+
-[ ] add ide configuration
66+
- [ ] add cli configuration

vercel.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"builds": [
3+
{ "src": "Dockerfile",
4+
"use": "@vercel/docker",
5+
"config": {
6+
"buildCommand": "docker build -t my-env:latest .",
7+
"pushCommand": "docker push my-env:latest"
8+
}
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)