-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdevcontainer.json
More file actions
49 lines (49 loc) · 1.79 KB
/
devcontainer.json
File metadata and controls
49 lines (49 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
"name": ".NET AI Workshop",
"image": "mcr.microsoft.com/devcontainers/dotnet:9.0",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true,
"version": "latest"
},
"ghcr.io/azure/azure-dev/azd:0": {
"version": "stable"
},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"ms-dotnettools.csdevkit",
"ms-azuretools.vscode-azure-github-copilot"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
17057
],
"portsAttributes": {
"17057": {
"protocol": "http",
"label": ".NET Aspire Dashboard"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo dotnet workload update && dotnet new install Microsoft.Extensions.AI.Templates && cd src/start/GenAiLab && dotnet restore",
"postStartCommand": "",
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "vscode",
"hostRequirements": {
"memory": "16gb",
"cpus": 4
},
// Open the starting solution when the container starts
"workspaceFolder": "/workspaces/ai-workshop",
"postAttachCommand": "code src/start/GenAiLab/GenAiLab.sln"
}