Skip to content

Commit ce38cf8

Browse files
DanWahlinCopilot
andcommitted
chore: optimize devcontainer for Codespaces prebuilds
Move install commands from postCreateCommand to onCreateCommand so they are cached during prebuild, reducing codespace startup time. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c8d2595 commit ce38cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
]
1313
}
1414
},
15-
"postCreateCommand": "pip install pytest && npm install -g @github/copilot && gh extension install github/gh-copilot",
15+
"onCreateCommand": "pip install pytest && npm install -g @github/copilot && gh extension install github/gh-copilot",
1616
"postStartCommand": "echo '✅ Python, pytest, GitHub CLI, and Copilot CLI are ready. Run: cd samples/book-app-project && python book_app.py help'"
1717
}

0 commit comments

Comments
 (0)