Skip to content

Conversation

@iloveitaly
Copy link
Collaborator

No description provided.

Add warning when .venv directory is found in project root, similar to
the existing node_modules check for Node projects. This helps prevent
accidentally committing virtual environments to version control.
….dockerignore

Update warning messages for both node_modules and .venv checks to
recommend adding these directories to .gitignore and/or .dockerignore
files, giving users more complete guidance on how to prevent these
directories from being included in builds.

Note: Both .venv and node_modules are already excluded by default in
the deploy layers of their respective providers.
Add node_modules and .venv to the default exclusion list when creating
local layers. This ensures these directories are excluded from build
contexts by default, even without a .dockerignore file.

Benefits:
- Reduces build context size and improves build performance
- Prevents accidentally including local dependencies in builds
- Works in combination with user's .dockerignore patterns
- Users can still override by explicitly including these in .dockerignore

Updated tests to verify default exclusions are present both with and
without .dockerignore files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants