File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ build-backend = "poetry.core.masonry.api"
5050[tool .poetry .scripts ]
5151docker-build = " scripts.docker:build"
5252docker-serve = " scripts.docker:serve"
53+ docker-stop = " scripts.docker:stop"
5354docker-cleanup = " scripts.docker:cleanup"
5455serve = " scripts.serve:main"
5556
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def stop() -> None:
7575 """
7676 client = _get_client ()
7777 for container in client .containers .list (ignore_removed = True ):
78- if container .attrs ["image " ].startswith (_get_package_name () + ":" ):
78+ if container .attrs ["Config" ][ "Image " ].startswith (_get_package_name () + ":" ):
7979 container .remove (force = True )
8080
8181
Original file line number Diff line number Diff line change 11POETRY_VERSION=$( grep -Po ' (?<=^requires = \["poetry-core=)[^"]*' pyproject.toml)
22pip install " poetry==$POETRY_VERSION "
3- poetry install --no-root --no- dev --no-interaction --no-ansi
3+ poetry install --no-dev --no-interaction --no-ansi
You can’t perform that action at this time.
0 commit comments