Skip to content

Commit

Permalink
Improve devcontainer (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
digimangos authored Oct 2, 2024
1 parent 0661beb commit 719c13e
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "my-copilot-agent",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "32gb"
},
"waitFor": "onCreateCommand",
"updateContentCommand": "npm update -g npm && npm update && npm install",
"postAttachCommand": "./bootstrap/setup.sh",
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:18",
"customizations": {
"vscode": {
"settings": {
Expand All @@ -23,19 +24,16 @@
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"portsAttributes": {
"3000": {
"label": "This agent's API",
"onAutoForward": "notify"
},
"3001": {
"label": "Shopping List API",
"onAutoForward": "notify"
}
},
"forwardPorts": [3001],

// Specifies the port number(s) that the application will listen on.
"appPort": [3000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm update -g npm && npm update && npm install",
"postStartCommand": "./bootstrap/setup.sh"
// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"appPort": [3000]
}

0 comments on commit 719c13e

Please sign in to comment.