This repository was archived by the owner on Oct 16, 2025. It is now read-only.
Fix: Trying to get devcontainer to build on first open of Codespace. #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request updates the devcontainer setup to optimize installation of large machine learning packages by moving their installation to a post-create script. This change helps reduce disk usage during the container build process and keeps the requirements files cleaner.
Devcontainer configuration improvements:
Added a
postCreateCommandin.devcontainer/devcontainer.jsonto run.devcontainer/scripts/postCreate.shafter the container is created, ensuring ML packages are installed only when needed.Created
.devcontainer/scripts/postCreate.shto install large ML packages (torch,sentence-transformers,pymupdf4llm, andlunr) after container creation, using CPU-only torch for smaller size.Removed direct installation of large ML packages from
requirements-rag.txtand added a note explaining their installation is now handled by the post-create scriptAdded a missing
richdependency to requirements.txt for the video tutorial here: Python + AI: Structured outputsDoes this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
For testing, I ran the suite of python scripts from the demo. Those from the Python + AI: Structured Output video worked for me.
What to Check
Here is the output from running each of the files:
Click to Collapse
Other Information
Feel free to reach out if you have questions. I asked Claude Sonnet 4.5 to help me be surgical with the edits to make sure there are minimal changes to make this just work for others.
Hope this helps!