mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-10-02 09:56:43 +03:00
Fix Docker error volume name is too short during project generation (#6086)
* Fix Docker error: volume name is too short * Resolve absolute path for current working directory to create docker volume
This commit is contained in:
parent
18c93b6c8c
commit
bfa1704329
|
@ -535,8 +535,9 @@ def setup_dependencies():
|
|||
print(f"Error building Docker image: {e}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
current_path = Path.cwd().absolute()
|
||||
# Use Docker to run the uv command
|
||||
uv_cmd = ["docker", "run", "--rm", "-v", ".:/app", uv_image_tag, "uv"]
|
||||
uv_cmd = ["docker", "run", "--rm", "-v", f"{current_path}:/app", uv_image_tag, "uv"]
|
||||
else:
|
||||
# Use uv command directly
|
||||
uv_cmd = ["uv"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user