From ce38cf8a982160405caf7f7f4a2379d468bea798 Mon Sep 17 00:00:00 2001 From: Dan Wahlin Date: Mon, 6 Apr 2026 15:13:15 -0700 Subject: [PATCH] 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> --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index da42f10..815c26b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,6 +12,6 @@ ] } }, - "postCreateCommand": "pip install pytest && npm install -g @github/copilot && gh extension install github/gh-copilot", + "onCreateCommand": "pip install pytest && npm install -g @github/copilot && gh extension install github/gh-copilot", "postStartCommand": "echo '✅ Python, pytest, GitHub CLI, and Copilot CLI are ready. Run: cd samples/book-app-project && python book_app.py help'" }