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