11// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
33{
4- "name" : " C# (.NET) - Ollama" ,
5- "image" : " mcr.microsoft.com/devcontainers/dotnet:1-10.0-noble " ,
4+ "name" : " C# (.NET) - Ollama" ,
5+ "image" : " mcr.microsoft.com/devcontainers/dotnet" ,
66 "features" : {
77 "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
8- "ghcr.io/devcontainers/features/common-utils:2" : {},
9- "ghcr.io/devcontainers/features/azure-cli:1" : {
8+ "ghcr.io/devcontainers/features/azure-cli:1" : {
109 "installBicep" : true ,
1110 "version" : " latest"
1211 },
1312 "ghcr.io/azure/azure-dev/azd:0" : {
1413 "version" : " stable"
15- },
16- "ghcr.io/devcontainers/features/github-cli:1" : {},
17- "ghcr.io/prulloac/devcontainer-features/ollama:latest" : {},
18- " sshd" : " latest "
14+ },
15+ "ghcr.io/devcontainers/features/github-cli:1" : {},
16+ "ghcr.io/prulloac/devcontainer-features/ollama:latest" : {},
17+ "ghcr.io/devcontainers/features/ sshd:1 " : {}
1918 },
2019
21- "customizations" : {
22- "vscode" : {
23- "extensions" : [
24- " GitHub.copilot" ,
25- " ms-dotnettools.csdevkit" ,
26- " ms-azuretools.vscode-azure-github-copilot"
27- ]
28- }
29- },
30-
20+ "customizations" : {
21+ "vscode" : {
22+ "extensions" : [
23+ " GitHub.copilot" ,
24+ " ms-dotnettools.csdevkit" ,
25+ " ms-azuretools.vscode-azure-github-copilot"
26+ ]
27+ }
28+ },
3129
32- // Use 'forwardPorts' to make a list of ports inside the container available locally.
33- "forwardPorts" : [17057 ],
34- "portsAttributes" : {
35- "17057" : {
36- "protocol" : " http"
37- }
38- },
30+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
31+ "forwardPorts" : [17057 ],
32+ "portsAttributes" : {
33+ "17057" : {
34+ "protocol" : " http"
35+ }
36+ },
3937
40- // Use 'postCreateCommand' to run commands after the container is created.
41- "postCreateCommand" : " sudo dotnet workload update && sudo dotnet workload list && ollama pull all-minilm && ollama pull llama3.2 && ollama pull phi4-mini" ,
42- "postStartCommand" : " " ,
38+ // Use 'postCreateCommand' to run commands after the container is created.
39+ "postCreateCommand" : " sudo dotnet workload update && sudo dotnet workload list && ollama pull all-minilm && ollama pull llama3.2 && ollama pull phi4-mini" ,
40+ "postStartCommand" : " " ,
4341
44- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
45- "remoteUser" : " vscode" ,
42+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
43+ "remoteUser" : " vscode" ,
4644 "hostRequirements" : {
4745 "memory" : " 16gb" ,
4846 "cpus" : 4
4947 }
50- }
48+ }
0 commit comments