Skip to content

Commit 28f1372

Browse files
committed
Adding a delay to poststart command to try to avoid func error
1 parent e148a91 commit 28f1372

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
},
99
"ghcr.io/devcontainers/features/common-utils": {},
1010
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
11-
"ghcr.io/devcontainers/features/dotnet:2": "8.0",
11+
"ghcr.io/devcontainers/features/dotnet:2": {
12+
"version": "8.0"
13+
},
1214
"ghcr.io/devcontainers/features/git:1": {},
1315
"ghcr.io/devcontainers/features/github-cli:1": {},
1416
"ghcr.io/devcontainers/features/node:1": {
@@ -35,9 +37,8 @@
3537
}
3638
}
3739
},
38-
"onCreateCommand": "npm install -g azure-functions-core-tools@4 --unsafe-perm true",
39-
"postCreateCommand": "chmod +x ./infra/azd-hooks/preprovision.sh",
40-
"postStartCommand": "cd ./chainlit && python -m venv .venv && . .venv/bin/activate && pip install -r requirements.txt",
40+
"postCreateCommand": "npm install -g azure-functions-core-tools@4 --unsafe-perm true && chmod +x ./infra/azd-hooks/preprovision.sh",
41+
"postStartCommand": "cd ./chainlit && python -m venv .venv && . .venv/bin/activate && pip install -r requirements.txt && sleep 30",
4142
"remoteUser": "vscode",
4243
"forwardPorts": [
4344
7071,

0 commit comments

Comments
 (0)