File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ // For format details, see https://aka.ms/devcontainer.json.
2
+ {
3
+ "name" : " msdocs-python-flask-webapp-quickstart" ,
4
+ "image" : " mcr.microsoft.com/devcontainers/python:3.12-bullseye" ,
5
+ "features" : {
6
+ "ghcr.io/devcontainers/features/azure-cli:latest" : {},
7
+ "ghcr.io/azure/azure-dev/azd:latest" : {}
8
+ },
9
+ // Configure tool-specific properties.
10
+ "customizations" : {
11
+ // Configure properties specific to VS Code.
12
+ "vscode" : {
13
+ // Set *default* container specific settings.json values on container create.
14
+ "settings" : {
15
+ "python.defaultInterpreterPath" : " /usr/local/bin/python"
16
+ },
17
+
18
+ // Add the IDs of extensions you want installed when the container is created.
19
+ "extensions" : [
20
+ " ms-python.python"
21
+ ]
22
+ }
23
+ },
24
+
25
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
26
+ "forwardPorts" : [5000 ],
27
+
28
+ // Use 'postCreateCommand' to run commands after the container is created.
29
+ "postCreateCommand" : " " ,
30
+
31
+ // Use 'postStartCommand' to run commands after the container is started (more frequently than create).
32
+ "postStartCommand" : " pip install --user -r requirements.txt" ,
33
+
34
+ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35
+ "remoteUser" : " vscode"
36
+ }
You can’t perform that action at this time.
0 commit comments