mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-07-09 16:09:14 +00:00
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:
parent
79ba67cf00
commit
d961247987
2 changed files with 14 additions and 0 deletions
11
.dockerignore
Normal file
11
.dockerignore
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
__pycache__
|
||||
*.egg-info
|
||||
dist
|
||||
build
|
||||
.git
|
||||
.gitignore
|
||||
.github
|
||||
*.pyc
|
||||
.env
|
||||
.venv
|
||||
venv
|
||||
3
open_terminal/__main__.py
Normal file
3
open_terminal/__main__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from open_terminal.cli import main
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue