mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-11 03:13:51 +00:00
fix: Add Python artifacts to .dockerignore
Docker build fails when local .venv directory exists because: 1. COPY . /workspaces/serena/ copies .venv into container 2. RUN uv venv fails with 'virtual environment already exists' This change prevents the issue by excluding Python development artifacts: - .venv (virtual environment) - __pycache__ (Python bytecode cache) - *.pyc (compiled Python files) - .pytest_cache (test cache) These files are not needed for Docker builds as the container creates its own clean environment. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
257d0370ee
commit
23a860cdc0
1 file changed
+6
@@ -7,3 +7,9 @@ docs/.jupyter_cache
|
||||
docs/_build
|
||||
coverage.xml
|
||||
docker_build_and_run.sh
|
||||
|
||||
# Python artifacts (prevents Docker build conflicts when .venv exists locally)
|
||||
.venv
|
||||
__pycache__
|
||||
*.pyc
|
||||
.pytest_cache
|
||||
Reference in new issue
Block a user