Skip to content

Commit 1634d78

Browse files
vivekpal1SAMAD101
andcommitted
fix: devcontainer config
Co-authored-by: Sam <asamadans@gmail.com> Co-authored-by: vivekpal1 <31vivekpal@gmail.com>
1 parent 982e756 commit 1634d78

File tree

1 file changed

+41
-11
lines changed

1 file changed

+41
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,49 @@
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
13
{
2-
"name": "paste.py",
3-
"dockerfile": "Dockerfile",
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+
// "ghcr.io/devcontainers/features/python:1": {}
15+
// },
16+
17+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18+
"forwardPorts": [9000],
19+
20+
// Uncomment the next line to run commands after the container is created.
21+
// "postCreateCommand": "cat /etc/os-release",
22+
23+
// Configure tool-specific properties.
24+
"customizations": {
425
"extensions": {
5-
"python.pythonPath": "/usr/local/bin/python",
6-
"python.linting.enabled": true,
7-
"python.linting.pylintEnabled": false,
8-
"python.linting.flake8Enabled": true,
9-
"python.linting.flake8Args": ["--max-line-length=88"],
10-
"python.linting.mypyEnabled": true,
11-
"python.formatting.provider": "black"
26+
"python.pythonPath": "/usr/local/bin/python",
27+
"python.linting.enabled": true,
28+
"python.linting.pylintEnabled": false,
29+
"python.linting.flake8Enabled": true,
30+
"python.linting.flake8Args": ["--max-line-length=88"],
31+
"python.linting.mypyEnabled": true,
32+
"python.formatting.provider": "black"
1233
},
34+
"vscode": {
35+
"settings": {
36+
"terminal.integrated.defaultProfile.linux": "bash"
37+
}
38+
},
39+
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
40+
// "remoteUser": "devcontainer",
41+
1342
"portsAttributes": {
1443
"9000": {
1544
"label": "paste.py remote",
1645
"onAutoForward": "notify"
1746
}
18-
},
19-
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)