fix(docker): keep nested deps out of build context

This commit is contained in:
Brooklyn Nicholson
2026-04-27 14:52:27 -05:00
parent bac683d31d
commit 321e621096
2 changed files with 10 additions and 0 deletions

View File

@@ -5,7 +5,9 @@
# Dependencies
node_modules
**/node_modules
.venv
**/.venv
# CI/CD
.github

View File

@@ -21,6 +21,7 @@ import pytest
REPO_ROOT = Path(__file__).resolve().parents[2]
DOCKERFILE = REPO_ROOT / "Dockerfile"
DOCKERIGNORE = REPO_ROOT / ".dockerignore"
@pytest.fixture(scope="module")
@@ -132,3 +133,10 @@ def test_dockerfile_materializes_local_tui_ink_package(dockerfile_text):
and "import('@hermes/ink')" in step
for step in _run_steps(dockerfile_text)
)
def test_dockerignore_excludes_nested_dependency_dirs():
text = DOCKERIGNORE.read_text()
assert "**/node_modules" in text
assert "**/.venv" in text