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-postgres
33{
4- "name" : " C# (.NET) and PostgreSQL" ,
5- "dockerComposeFile" : " docker-compose.yml" ,
6- "service" : " app" ,
4+ "name" : " C# (.NET) and PostgreSQL" ,
5+ "dockerComposeFile" : " docker-compose.yml" ,
6+ "service" : " app" ,
77 "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
88 "features" : {
99 "ghcr.io/devcontainers/features/node:1" : {
1010 "version" : " lts"
1111 }
1212 },
13- "postCreateCommand" : " dotnet restore" ,
14-
13+ "postCreateCommand" : " dotnet tool install --global dotnet ef && dotnet restore" ,
1514 "customizations" : {
1615 "vscode" : {
17- "extensions" : [" svelte.svelte-vscode" , " mhutchie.git-graph" , " eamodio.gitlens" ]
16+ "extensions" : [
17+ " svelte.svelte-vscode" ,
18+ " mhutchie.git-graph" ,
19+ " eamodio.gitlens"
20+ ]
1821 }
19- }
20-
22+ }
2123 // Features to add to the dev container. More info: https://containers.dev/features.
2224 // "features": {},
23-
2425 // Configure tool-specific properties.
2526 // "customizations": {},
26-
2727 // Use 'forwardPorts' to make a list of ports inside the container available locally.
2828 // "forwardPorts": ["app:5254"],
2929 // "portsAttributes": {
3030 // "5001": {
3131 // "protocol": "https"
3232 // }
3333 // }
34-
35- // Use 'postCreateCommand' to run commands after the container is created.
36- // "postCreateCommand": "dotnet --info",
37-
34+ // Use 'postCreateCommand' to run commands after the container is created.
35+ // "postCreateCommand": "dotnet --info",
3836 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
3937 // "remoteUser": "root"
40- }
38+ }
0 commit comments