mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix(docker): keep nested deps out of build context
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
|
||||
# Dependencies
|
||||
node_modules
|
||||
**/node_modules
|
||||
.venv
|
||||
**/.venv
|
||||
|
||||
# CI/CD
|
||||
.github
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user