fix: add .dockerignore to prevent console script corruption (fixes #23)

Build artifacts (__pycache__, *.egg-info, dist/, etc.) were leaking into
the Docker build context via COPY, corrupting the pip-generated console
script's shebang line and causing bash to interpret it as a shell script.

- Add .dockerignore to exclude build artifacts and dev files
- Add __main__.py for python -m open_terminal support
This commit is contained in:
Timothy Jaeryang Baek 2026-03-06 14:12:23 -06:00
parent 79ba67cf00
commit d961247987
2 changed files with 14 additions and 0 deletions

11
.dockerignore Normal file
View file

@ -0,0 +1,11 @@
__pycache__
*.egg-info
dist
build
.git
.gitignore
.github
*.pyc
.env
.venv
venv

View file

@ -0,0 +1,3 @@
from open_terminal.cli import main
main()