Skip to content

Commit 85ad72e

Browse files
committed
Add devcontainer for better developer experience
1 parent 55fac09 commit 85ad72e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
3+
{
4+
"name": "Existing Dockerfile",
5+
"build": {
6+
// Sets the run context to one level up instead of the .devcontainer folder.
7+
"context": "..",
8+
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
9+
"dockerfile": "../Dockerfile"
10+
},
11+
12+
// Features to add to the dev container. More info: https://containers.dev/features.
13+
// "features": {},
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
"forwardPorts": [8000],
17+
"runArgs": ["--network=host"]
18+
19+
// Uncomment the next line to run commands after the container is created.
20+
// "postCreateCommand": "cat /etc/os-release",
21+
22+
// Configure tool-specific properties.
23+
// "customizations": {},
24+
25+
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
26+
// "remoteUser": "devcontainer"
27+
}

0 commit comments

Comments
 (0)